diff --git a/homeassistant/components/switch/__init__.py b/homeassistant/components/switch/__init__.py index fb5c2969d7e..3884b90c464 100644 --- a/homeassistant/components/switch/__init__.py +++ b/homeassistant/components/switch/__init__.py @@ -103,7 +103,7 @@ class SwitchDevice(ToggleEntity): for prop, attr in PROP_TO_ATTR.items(): value = getattr(self, prop) - if value: + if value is not None: data[attr] = value return data