mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
resync hass that changes have occured (#21705)
This commit is contained in:
parent
b7b034c532
commit
54895fcb1e
@ -44,11 +44,14 @@ class TelldusLiveCover(TelldusLiveEntity, CoverDevice):
|
|||||||
def close_cover(self, **kwargs):
|
def close_cover(self, **kwargs):
|
||||||
"""Close the cover."""
|
"""Close the cover."""
|
||||||
self.device.down()
|
self.device.down()
|
||||||
|
self._update_callback()
|
||||||
|
|
||||||
def open_cover(self, **kwargs):
|
def open_cover(self, **kwargs):
|
||||||
"""Open the cover."""
|
"""Open the cover."""
|
||||||
self.device.up()
|
self.device.up()
|
||||||
|
self._update_callback()
|
||||||
|
|
||||||
def stop_cover(self, **kwargs):
|
def stop_cover(self, **kwargs):
|
||||||
"""Stop the cover."""
|
"""Stop the cover."""
|
||||||
self.device.stop()
|
self.device.stop()
|
||||||
|
self._update_callback()
|
||||||
|
@ -45,6 +45,7 @@ class TelldusLiveLight(TelldusLiveEntity, Light):
|
|||||||
def changed(self):
|
def changed(self):
|
||||||
"""Define a property of the device that might have changed."""
|
"""Define a property of the device that might have changed."""
|
||||||
self._last_brightness = self.brightness
|
self._last_brightness = self.brightness
|
||||||
|
self._update_callback()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def brightness(self):
|
def brightness(self):
|
||||||
|
@ -44,7 +44,9 @@ class TelldusLiveSwitch(TelldusLiveEntity, ToggleEntity):
|
|||||||
def turn_on(self, **kwargs):
|
def turn_on(self, **kwargs):
|
||||||
"""Turn the switch on."""
|
"""Turn the switch on."""
|
||||||
self.device.turn_on()
|
self.device.turn_on()
|
||||||
|
self._update_callback()
|
||||||
|
|
||||||
def turn_off(self, **kwargs):
|
def turn_off(self, **kwargs):
|
||||||
"""Turn the switch off."""
|
"""Turn the switch off."""
|
||||||
self.device.turn_off()
|
self.device.turn_off()
|
||||||
|
self._update_callback()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user