Make ZHA entities non-polled by default (#19536)
This commit is contained in:
1 parent
2a2af80309
commit
01fc322488
6 files changed
+5
-41
No files matched your search
@@ -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."""
|
||||
|
||||
Reference in new issue
Block a user