Remove exception handling for AttributeError in wemo (#46674)
This commit is contained in:
parent
8c72cb6163
commit
94131df5e0
5 changed files with 8 additions and 6 deletions
|
@ -191,7 +191,7 @@ class WemoLight(WemoEntity, LightEntity):
|
|||
try:
|
||||
self._update_lights(no_throttle=force_update)
|
||||
self._state = self.wemo.state
|
||||
except (AttributeError, ActionException) as err:
|
||||
except ActionException as err:
|
||||
_LOGGER.warning("Could not update status for %s (%s)", self.name, err)
|
||||
self._available = False
|
||||
self.wemo.bridge.reconnect_with_device()
|
||||
|
@ -238,7 +238,7 @@ class WemoDimmer(WemoSubscriptionEntity, LightEntity):
|
|||
if not self._available:
|
||||
_LOGGER.info("Reconnected to %s", self.name)
|
||||
self._available = True
|
||||
except (AttributeError, ActionException) as err:
|
||||
except ActionException as err:
|
||||
_LOGGER.warning("Could not update status for %s (%s)", self.name, err)
|
||||
self._available = False
|
||||
self.wemo.reconnect_with_device()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue