mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 13:45:12 +02:00
Turn off polling for sensor too!
This commit is contained in:
@@ -136,6 +136,11 @@ class VeraSensor(Entity):
|
|||||||
attr['Vera Device Id'] = self.vera_device.vera_device_id
|
attr['Vera Device Id'] = self.vera_device.vera_device_id
|
||||||
return attr
|
return attr
|
||||||
|
|
||||||
|
@property
|
||||||
|
def should_poll(self):
|
||||||
|
""" Tells Home Assistant not to poll this entity. """
|
||||||
|
return False
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
if self.vera_device.category == "Temperature Sensor":
|
if self.vera_device.category == "Temperature Sensor":
|
||||||
self.vera_device.refresh_value('CurrentTemperature')
|
self.vera_device.refresh_value('CurrentTemperature')
|
||||||
|
Reference in New Issue
Block a user