mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +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
|
||||
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')
|
||||
|
Reference in New Issue
Block a user