Test edge cases in wemo platform code (#44136)

This commit is contained in:
Eric Severance 2020-12-12 10:41:20 -08:00 committed by GitHub
parent dd4147fbaa
commit 8fe5e61cbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 322 additions and 8 deletions

View file

@ -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)