diff --git a/homeassistant/components/light/wemo.py b/homeassistant/components/light/wemo.py index fcf3d2f7a7d..655fb2d9481 100644 --- a/homeassistant/components/light/wemo.py +++ b/homeassistant/components/light/wemo.py @@ -107,6 +107,11 @@ class WemoLight(Light): """Flag supported features.""" return SUPPORT_WEMO + @property + def available(self): + """Return if light is available.""" + return self.device.state['available'] + def turn_on(self, **kwargs): """Turn the light on.""" transitiontime = int(kwargs.get(ATTR_TRANSITION, 0)) @@ -195,6 +200,11 @@ class WemoDimmer(Light): """Return true if dimmer is on. Standby is on.""" return self._state + @property + def available(self): + """Return if dimmer is available.""" + return self.device.state['available'] + def _update(self, force_update=True): """Update the device state.""" try: