Make ZHA entities non-polled by default (#19536)

This commit is contained in:
Alexei Chetroi authored and Martin Hjelmare committed 2018-12-23 11:11:24 +01:00
1 parent 2a2af80309
commit 01fc322488
6 files changed
+5 -41

No files matched your search

-5
View File
@@ -82,11 +82,6 @@ class Switch(ZhaEntity, SwitchDevice):
"""Entity's cluster."""
return self._endpoint.on_off
@property
def should_poll(self) -> bool:
"""Let zha handle polling."""
return False
@property
def is_on(self) -> bool:
"""Return if the switch is on based on the statemachine."""