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
|
@ -41,7 +41,7 @@ class WemoBinarySensor(WemoSubscriptionEntity, BinarySensorEntity):
|
|||
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