mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-24 19:04:19 +02:00
Extra test
This commit is contained in:
parent
76a9e09f7d
commit
f04c475d06
2 changed files with 28 additions and 2 deletions
|
|
@ -2342,8 +2342,7 @@ class AdaptiveLightingManager:
|
|||
for light in lights:
|
||||
if reset_manual_control:
|
||||
self.manual_control[light] = False
|
||||
timer = self.auto_reset_manual_control_timers.pop(light, None)
|
||||
if timer is not None:
|
||||
if timer := self.auto_reset_manual_control_timers.pop(light, None):
|
||||
timer.cancel()
|
||||
self.last_state_change.pop(light, None)
|
||||
self.last_service_data.pop(light, None)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue