adaptive-lighting/custom_components/adaptive_lighting
Casey d5d3ecc9d4 Implement add-runtime-range-controls
Adds four live-tunable `number` entities per AL profile (min/max
brightness, min/max color temp) that own the runtime curve values.
Slider changes take effect on the next curve tick — no integration
reload. State persists across HA restart via `RestoreNumber`.

Curve math now reads `min_brightness`, `max_brightness`,
`min_color_temp`, `max_color_temp` from the four runtime entities
via the entity registry, falling back to `entry.options` when an
entity is unavailable. The options flow seeds its four range fields
from the current entity state so the dialog matches reality.

Also fixes entity friendly names via HA's `has_entity_name`
composition: profile "Dining MVP" now reads as "Dining MVP",
"Dining MVP Brightness", "Dining MVP Color" — short enough for
HA's tightest cards. `unique_id`s are unchanged so existing
entity_ids stay stable.

Manifest bumped to 2.1.0-cdit.1 (minor, no breaking changes).
14 new tests in `tests/test_number_platform.py`; 108 passing
overall. OpenSpec change archived once 9.x live-HA verification
completes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-05-16 22:24:39 +02:00
..
translations Implement add-runtime-range-controls 2026-05-16 22:24:39 +02:00
__init__.py Implement add-runtime-range-controls 2026-05-16 22:24:39 +02:00
_docs_helpers.py Implement cdit-config-redesign groups 1-6 (30/53 tasks) 2026-05-16 14:27:39 +02:00
adaptation_utils.py Individual manual control of brightness and color (#1356) 2025-12-22 22:55:16 -08:00
color_and_brightness.py Implement cdit-config-redesign groups 1-6 (30/53 tasks) 2026-05-16 14:27:39 +02:00
config_flow.py Implement add-runtime-range-controls 2026-05-16 22:24:39 +02:00
const.py Implement add-runtime-range-controls 2026-05-16 22:24:39 +02:00
docs_gen.py Migrate to markdown-code-runner's built-in include_section() (#1417) 2026-01-26 09:01:50 +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 Implement add-runtime-range-controls 2026-05-16 22:24:39 +02:00
number.py Implement add-runtime-range-controls 2026-05-16 22:24:39 +02:00
services.yaml Groups 8 + 9: strings, services.yaml, README, CHANGELOG (37/53) 2026-05-16 14:59:09 +02:00
strings.json Implement add-runtime-range-controls 2026-05-16 22:24:39 +02:00
switch.py Implement add-runtime-range-controls 2026-05-16 22:24:39 +02:00