Merge pull request #1476 from stefan-jonasson/assumed-state

Add assumed state for Tellstick devices.
pull/1477/head
Paulus Schoutsen 2016-03-05 01:41:55 -08:00
commit d30fb7f04a
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. """