mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-27 20:34:20 +02:00
The previous commit incorrectly moved the _off_to_on_state_event_is_from_turn_on check to before the context ID match check, which broke test_separate_turn_on_commands. The original order must be: 1. Check on_to_off_event is None → return False 2. Check context IDs match → return True (polling artifact) 3. Get transition info 4. Check _off_to_on_state_event_is_from_turn_on → return False This commit restores that order while keeping the light group detection logic in _off_to_on_state_event_is_from_turn_on. |
||
|---|---|---|
| .. | ||
| adaptive_lighting | ||