Merge pull request #1476 from stefan-jonasson/assumed-state
Add assumed state for Tellstick devices.pull/1477/head
commit
d30fb7f04a
|
@ -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
|
||||
|
|
|
@ -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. """
|
||||
|
|
Loading…
Reference in New Issue