Turn off poll
This commit is contained in:
1 parent
ae0dbbcfa5
commit
d82859b6ea
1 file changed
+5
@@ -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. """
|
||||
|
||||
Reference in new issue
Block a user