Disable polling for ozw entities (#38005)
This commit is contained in:
parent
36ee9ff58f
commit
65eedcf434
1 changed files with 5 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue