adaptive-lighting/custom_components/adaptive_lighting
BrawnyBravo c009f9a1e8 Fix bugs found in code review
- Brightness: a zero/negative linear or tanh ramp no longer divides by
  zero; brightness switches instantly at sunrise/sunset instead.
- Color temp: adapt_until_sleep now fades smoothly when the sleep color
  temp is cooler than min_color_temp (no jump at sunset).
- RGB fade: hue takes the short way around the color wheel and keeps the
  colored end's hue when fading to/from white or grey.
- Setting autoreset_control_seconds to 0 now clears a leftover delay,
  unless another profile for the same light still uses auto-reset.
- Turning the switch off during adapt_delay skips quietly instead of
  failing an assertion.
- Proactive-adaptation tracking is scoped per light, so one automation
  turning on light A no longer hides a manual change to light B made
  under the same context.
- Remove turn_on_lights from change_switch_settings in services.yaml and
  translations; the service schema never accepted it.
- Unload: drop the never-removed hass.config.entry_updated listener, keep
  the update listener when unload fails, and disable the shared manager
  on the last unload even after a YAML import (keeping the YAML marker).

Adds a regression test for each fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 09:33:55 -07:00
..
translations Fix bugs found in code review 2026-10-13 09:33:55 -07:00
__init__.py Fix bugs found in code review 2026-10-13 09:33:55 -07:00
_docs_helpers.py Register service actions in async_setup for Bronze tier compliance (#1403) 2026-09-06 13:04:18 +02:00
adaptation_utils.py Fix missing follow-up commands during multi-light interception (#1560) 2026-09-06 14:03:08 +02:00
color_and_brightness.py Fix bugs found in code review 2026-10-13 09:33:55 -07:00
config_flow.py Implement collapsible sections for options flow (#1313) 2026-09-06 17:18:42 +02:00
const.py feat: add expand_light_groups option (#1462) 2026-09-06 21:13:35 +02:00
diagnostics.py Add on-demand Home Assistant diagnostics (#1575) 2026-09-06 19:11:55 +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 fix: track mixed targets during light turn-off (#1584) 2026-09-07 07:41:28 +02:00
helpers.py Friendly names (#1258) 2025-11-27 12:01:05 -08:00
manifest.json chore: release v1.32.0 (#1580) 2026-09-06 22:06:43 +02:00
services.yaml Fix bugs found in code review 2026-10-13 09:33:55 -07:00
strings.json Fix bugs found in code review 2026-10-13 09:33:55 -07:00
switch.py Fix bugs found in code review 2026-10-13 09:33:55 -07:00