adaptive-lighting/custom_components/adaptive_lighting
Casey 6725f164aa fix: entity translations were dead, and both validators disabled themselves
Entity._name_internal returns _attr_name before it ever consults
translation_key (homeassistant/helpers/entity.py:689). sensor.py and number.py
set both, so every entity.sensor.* and entity.number.* string added to
strings.json has been unreachable — the five sliders and five sensors rendered
English regardless of the user's language, bolted onto an integration that is
otherwise translated into 36. Dropping the three _attr_name assignments makes
the keys live; display_name was then a dead constructor parameter and goes too.

Two keys existed in strings.json but not translations/en.json (ambient_lux,
lux_reduction) and ramp_half_width was in neither, so a bare deletion would
have left three entities unnamed. Added them to both files.

ambient_lux carries unit lx and is textbook SensorDeviceClass.ILLUMINANCE; it
was inheriting the class-level _attr_device_class = None along with the four
curve outputs that genuinely have no equivalent. Without it the sensor loses
standard icon, unit handling and long-term-statistics grouping. Now a per-key
lookup, so the outputs keep their honest None.

The five number entities are behaviour knobs, not state — EntityCategory.CONFIG
moves them off the primary device page.

Both validate.yml and hassfest.yaml carried `schedule: cron "0 0 * * *"`, and
GitHub auto-disables any workflow with a schedule after 60 days of repository
inactivity. Both were taken out on 2026-09-08, 60 days after the last push. A
disabled workflow also stops answering push and pull_request, so this repo now
has no HACS or hassfest validation at all. Removing the cron is the durable
fix; re-enabling in the UI just restarts the same clock.

README claimed the tanh ramp has "a fixed 30-minute half-width" 60 lines above
documenting the live 5-120 min slider that replaced it.

164 tests pass, ruff clean.
2026-09-08 13:34:27 +02:00
..
translations fix: entity translations were dead, and both validators disabled themselves 2026-09-08 13:34:27 +02:00
__init__.py Clean up all remaining ruff errors; lint is now fully green 2026-06-05 12:16:40 +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 Fix sun-event day-anchoring: curve collapsed to min in summer afternoons 2026-06-07 20:26:42 +02:00
config_flow.py Clean up all remaining ruff errors; lint is now fully green 2026-06-05 12:16:40 +02:00
const.py Implement add-runtime-ramp-width: live ramp half-width number entity 2026-06-07 22:30:58 +02:00
hass_utils.py Clean up all remaining ruff errors; lint is now fully green 2026-06-05 12:16:40 +02:00
helpers.py Friendly names (#1258) 2025-11-27 12:01:05 -08:00
manifest.json fix hassfest: drop invalid 'homeassistant' manifest key; run validation on main 2026-06-09 14:21:27 +02:00
number.py fix: entity translations were dead, and both validators disabled themselves 2026-09-08 13:34:27 +02:00
sensor.py fix: entity translations were dead, and both validators disabled themselves 2026-09-08 13:34:27 +02:00
services.yaml Groups 8 + 9: strings, services.yaml, README, CHANGELOG (37/53) 2026-05-16 14:59:09 +02:00
strings.json fix: entity translations were dead, and both validators disabled themselves 2026-09-08 13:34:27 +02:00
switch.py Implement add-runtime-ramp-width: live ramp half-width number entity 2026-06-07 22:30:58 +02:00