Turn off poll
This commit is contained in:
parent
ae0dbbcfa5
commit
d82859b6ea
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue