Add assumed state for Tellstick devices.
Tellstick device states are always assumed so this should be set to true.
This commit is contained in:
parent
9654f6b4e4
commit
e57eca517b
2 changed files with 10 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue