Tellstick switch force update (#3874)

This commit is contained in:
Per Sandström 2016-10-17 00:56:55 +02:00 committed by Paulus Schoutsen
parent 2a972b2334
commit d9ae7ceb0c

View File

@ -61,3 +61,8 @@ class TellstickSwitchDevice(tellstick.TellstickDevice, ToggleEntity):
"""Turn the switch off."""
from tellcore.constants import TELLSTICK_TURNOFF
self.call_tellstick(TELLSTICK_TURNOFF)
@property
def force_update(self) -> bool:
"""Will trigger anytime the state property is updated."""
return True