Disable polling for ozw entities (#38005)

This commit is contained in:
Rob Bierbooms 2020-07-20 10:56:22 +02:00 committed by GitHub
parent 36ee9ff58f
commit 65eedcf434
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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: