Disable polling for ozw entities (#38005)

This commit is contained in:
Rob Bierbooms authored and GitHub committed 2020-07-20 10:56:22 +02:00
1 parent 36ee9ff58f
commit 65eedcf434
1 file changed
+5
+5
View File
@@ -247,6 +247,11 @@ class ZWaveDeviceEntity(Entity):
self.on_value_update()
self.async_write_ha_state()
@property
def should_poll(self):
"""No polling needed."""
return False
async def _delete_callback(self, values_id):
"""Remove this entity."""
if not self.values: