Add assumed state for Tellstick devices.

Tellstick device states are always assumed so this should be set to true.
This commit is contained in:
Stefan Jonasson 2016-03-05 10:24:22 +01:00
parent 9654f6b4e4
commit e57eca517b
2 changed files with 10 additions and 0 deletions

View file

@ -125,3 +125,8 @@ class TellstickLight(Light):
def should_poll(self):
""" Tells Home Assistant not to poll this entity. """
return False
@property
def assumed_state(self):
""" Tellstick devices are always assumed state """
return True

View file

@ -72,6 +72,11 @@ class TellstickSwitchDevice(ToggleEntity):
""" Tells Home Assistant not to poll this entity. """
return False
@property
def assumed_state(self):
""" Tellstick devices are always assumed state """
return True
@property
def name(self):
""" Returns the name of the switch if any. """