mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 08:47:10 +00:00
Turn off poll
This commit is contained in:
parent
ae0dbbcfa5
commit
d82859b6ea
@ -143,6 +143,11 @@ class VeraSwitch(ToggleEntity):
|
||||
self.vera_device.switch_off()
|
||||
self.is_on_status = False
|
||||
|
||||
@property
|
||||
def should_poll(self):
|
||||
""" Tells Home Assistant not to poll this entity. """
|
||||
return False
|
||||
|
||||
@property
|
||||
def is_on(self):
|
||||
""" True if device is on. """
|
||||
|
Loading…
x
Reference in New Issue
Block a user