adaptive-lighting/custom_components/adaptive_lighting
Bas Nijholt f7c8e0dcca fix: check member turn_on before blocking on context ID match
The context ID match check at line 2804 was returning True (blocking
adaptation) before checking if a member light's turn_on event explained
the group's turn-on. This caused the issue where light groups wouldn't
adapt when a member was turned on by automation.

The fix adds a check for _member_turn_on_explains_group_turn_on() inside
the context ID match block. If a member's turn_on event happened after
the group's on→off event, the group's turn-on is legitimate and not a
polling artifact, so we return False (allow adaptation).

This is a more targeted fix than reordering the checks, which broke
test_separate_turn_on_commands. By keeping the context ID check first
but adding the member check inside it, we:
1. Preserve the original polling artifact detection for non-groups
2. Properly handle light groups where HA reuses context IDs

Fixes: #1378
2026-01-13 03:15:27 -08:00
..
translations Fix regression: lights not adapting when turned on by automation (#1380) 2026-01-12 13:40:55 +01:00
__init__.py Code cleanup (#1348) 2025-12-12 13:37:42 -08:00
_docs_helpers.py Individual manual control of brightness and color (#1356) 2025-12-22 22:55:16 -08:00
adaptation_utils.py Individual manual control of brightness and color (#1356) 2025-12-22 22:55:16 -08:00
color_and_brightness.py Code cleanup (#1348) 2025-12-12 13:37:42 -08:00
config_flow.py Code cleanup (#1348) 2025-12-12 13:37:42 -08:00
const.py Fix regression: lights not adapting when turned on by automation (#1380) 2026-01-12 13:40:55 +01:00
docs_gen.py Add documentation site with Zensical framework (#1385) 2026-01-12 23:39:57 +01:00
hass_utils.py Friendly names (#1258) 2025-11-27 12:01:05 -08:00
helpers.py Friendly names (#1258) 2025-11-27 12:01:05 -08:00
manifest.json Bump to v1.30.1 (#1384) 2026-01-12 13:46:19 +01:00
services.yaml Individual manual control of brightness and color (#1356) 2025-12-22 22:55:16 -08:00
strings.json Fix regression: lights not adapting when turned on by automation (#1380) 2026-01-12 13:40:55 +01:00
switch.py fix: check member turn_on before blocking on context ID match 2026-01-13 03:15:27 -08:00