Remove calls to wemo.reconnect_with_device (#46646)
parent
f7c0fc5553
commit
eb3e5cb67f
|
@ -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()
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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."""
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue