mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Fix jumpy Verisure Wallplug state (#49880)
This commit is contained in:
parent
c68b259bd3
commit
b2c1da54aa
@ -89,9 +89,11 @@ class VerisureSmartplug(CoordinatorEntity, SwitchEntity):
|
||||
self.coordinator.verisure.set_smartplug_state(self.serial_number, True)
|
||||
self._state = True
|
||||
self._change_timestamp = monotonic()
|
||||
self.schedule_update_ha_state()
|
||||
|
||||
def turn_off(self, **kwargs) -> None:
|
||||
"""Set smartplug status off."""
|
||||
self.coordinator.verisure.set_smartplug_state(self.serial_number, False)
|
||||
self._state = False
|
||||
self._change_timestamp = monotonic()
|
||||
self.schedule_update_ha_state()
|
||||
|
Loading…
x
Reference in New Issue
Block a user