Turn off polling for sensor too!

This commit is contained in:
pavoni 2015-12-31 19:15:21 +00:00
parent f8e5df237b
commit 9e0946b207

View file

@ -136,6 +136,11 @@ class VeraSensor(Entity):
attr['Vera Device Id'] = self.vera_device.vera_device_id
return attr
@property
def should_poll(self):
""" Tells Home Assistant not to poll this entity. """
return False
def update(self):
if self.vera_device.category == "Temperature Sensor":
self.vera_device.refresh_value('CurrentTemperature')