Test edge cases in wemo platform code (#44136)
This commit is contained in:
parent
dd4147fbaa
commit
8fe5e61cbf
8 changed files with 322 additions and 8 deletions
|
@ -208,7 +208,7 @@ class WemoLight(LightEntity):
|
|||
except (AttributeError, ActionException) as err:
|
||||
_LOGGER.warning("Could not update status for %s (%s)", self.name, err)
|
||||
self._available = False
|
||||
self.wemo.reconnect_with_device()
|
||||
self.wemo.bridge.reconnect_with_device()
|
||||
else:
|
||||
self._is_on = self._state.get("onoff") != WEMO_OFF
|
||||
self._brightness = self._state.get("level", 255)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue