mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix ZHA on with timed off cluster command (#75815)
This commit is contained in:
parent
699fff08ed
commit
6254142b8a
@ -365,7 +365,7 @@ class OnOffChannel(ZigbeeChannel):
|
||||
should_accept = args[0]
|
||||
on_time = args[1]
|
||||
# 0 is always accept 1 is only accept when already on
|
||||
if should_accept == 0 or (should_accept == 1 and self._state):
|
||||
if should_accept == 0 or (should_accept == 1 and bool(self.on_off)):
|
||||
if self._off_listener is not None:
|
||||
self._off_listener()
|
||||
self._off_listener = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user