mirror of
https://github.com/home-assistant/core.git
synced 2025-06-11 16:47:11 +00:00
Merge pull request #1476 from stefan-jonasson/assumed-state
Add assumed state for Tellstick devices.
This commit is contained in:
commit
d30fb7f04a
@ -125,3 +125,8 @@ class TellstickLight(Light):
|
|||||||
def should_poll(self):
|
def should_poll(self):
|
||||||
""" Tells Home Assistant not to poll this entity. """
|
""" Tells Home Assistant not to poll this entity. """
|
||||||
return False
|
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. """
|
""" Tells Home Assistant not to poll this entity. """
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
@property
|
||||||
|
def assumed_state(self):
|
||||||
|
""" Tellstick devices are always assumed state """
|
||||||
|
return True
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
""" Returns the name of the switch if any. """
|
""" Returns the name of the switch if any. """
|
||||||
|
Loading…
x
Reference in New Issue
Block a user