mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-12 06:44:04 +02:00
Update switch.py
This commit is contained in:
parent
8e847e71eb
commit
30c62bf759
1 changed files with 3 additions and 0 deletions
|
|
@ -1558,6 +1558,9 @@ class TurnOnOffListener:
|
|||
self.auto_reset_manual_control_timers: dict[str, _AsyncSingleShotTimer] = {}
|
||||
self.auto_reset_manual_control_times: dict[str, float] = {}
|
||||
|
||||
# Track light transitions
|
||||
self.transition_timers: dict[str, _AsyncSingleShotTimer] = {}
|
||||
|
||||
# When a state is different `max_cnt_significant_changes` times in a row,
|
||||
# mark it as manually_controlled.
|
||||
self.max_cnt_significant_changes = 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue