mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Disable polling for ozw entities (#38005)
This commit is contained in:
parent
36ee9ff58f
commit
65eedcf434
@ -247,6 +247,11 @@ class ZWaveDeviceEntity(Entity):
|
|||||||
self.on_value_update()
|
self.on_value_update()
|
||||||
self.async_write_ha_state()
|
self.async_write_ha_state()
|
||||||
|
|
||||||
|
@property
|
||||||
|
def should_poll(self):
|
||||||
|
"""No polling needed."""
|
||||||
|
return False
|
||||||
|
|
||||||
async def _delete_callback(self, values_id):
|
async def _delete_callback(self, values_id):
|
||||||
"""Remove this entity."""
|
"""Remove this entity."""
|
||||||
if not self.values:
|
if not self.values:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user