mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-10-31 23:47:45 +01:00
- 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> |
||
|---|---|---|
| .. | ||
| translations | ||
| __init__.py | ||
| _docs_helpers.py | ||
| adaptation_utils.py | ||
| color_and_brightness.py | ||
| config_flow.py | ||
| const.py | ||
| diagnostics.py | ||
| docs_gen.py | ||
| hass_utils.py | ||
| helpers.py | ||
| manifest.json | ||
| services.yaml | ||
| strings.json | ||
| switch.py | ||