adaptive-lighting/custom_components
Bas Nijholt 891a48e8e5
Add bidirectional color mode change detection (issue #1275)
Extract _has_color_mode_changed() function that checks original attributes
BEFORE conversion, enabling detection of all mode switches:
- color_temp → RGB ✓
- color_temp → XY ✓
- RGB → color_temp ✓ (NEW)
- RGB → XY ✓ (NEW)
- XY → color_temp ✓ (NEW)
- XY → RGB ✓ (NEW)

This improves on PR #1282 by detecting mode changes in both directions,
not just from color_temp. Updated tests to cover all 6 mode transitions.
2025-11-27 09:48:23 -08:00
..
adaptive_lighting Add bidirectional color mode change detection (issue #1275) 2025-11-27 09:48:23 -08:00