Remove calls to wemo.reconnect_with_device (#46646)

pull/46592/head^2
Eric Severance 2021-02-17 04:17:31 -08:00 committed by GitHub
parent f7c0fc5553
commit eb3e5cb67f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 0 additions and 6 deletions

View File

@ -44,4 +44,3 @@ class WemoBinarySensor(WemoSubscriptionEntity, BinarySensorEntity):
except ActionException as err:
_LOGGER.warning("Could not update status for %s (%s)", self.name, err)
self._available = False
self.wemo.reconnect_with_device()

View File

@ -158,7 +158,6 @@ class WemoHumidifier(WemoSubscriptionEntity, FanEntity):
except ActionException as err:
_LOGGER.warning("Could not update status for %s (%s)", self.name, err)
self._available = False
self.wemo.reconnect_with_device()
def turn_on(
self,

View File

@ -194,7 +194,6 @@ class WemoLight(WemoEntity, LightEntity):
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()
else:
self._is_on = self._state.get("onoff") != WEMO_OFF
self._brightness = self._state.get("level", 255)
@ -241,7 +240,6 @@ class WemoDimmer(WemoSubscriptionEntity, LightEntity):
except ActionException as err:
_LOGGER.warning("Could not update status for %s (%s)", self.name, err)
self._available = False
self.wemo.reconnect_with_device()
def turn_on(self, **kwargs):
"""Turn the dimmer on."""

View File

@ -180,4 +180,3 @@ class WemoSwitch(WemoSubscriptionEntity, SwitchEntity):
except ActionException as err:
_LOGGER.warning("Could not update status for %s (%s)", self.name, err)
self._available = False
self.wemo.reconnect_with_device()

View File

@ -139,7 +139,6 @@ async def test_async_locked_update_with_exception(
)
assert hass.states.get(wemo_entity.entity_id).state == STATE_UNAVAILABLE
pywemo_device.reconnect_with_device.assert_called_with()
async def test_async_update_with_timeout_and_recovery(hass, wemo_entity, pywemo_device):