feat(api-input): expose timeout/interpolation, fix 422 on light turn-on

- coordinator.update_source now auto-injects source_type from cached data so
  the server's discriminated-union body validates (was rejecting
  fallback_color updates with 422).
- Add Fallback Timeout (number) and Interpolation (select) entities per
  api_input CSS source.
- Light no longer zeros fallback_color on turn_off; state restored across
  HA restarts via RestoreEntity so the chosen default color persists.
- Bump manifest to 0.2.2 and update en/ru translations.
This commit is contained in:
2026-04-26 02:26:06 +03:00
parent 5c8b3c259a
commit 0a16dc9058
8 changed files with 226 additions and 14 deletions
@@ -73,6 +73,9 @@
},
"ha_light_color_tolerance": {
"name": "Допуск цвета"
},
"api_input_timeout": {
"name": "Таймаут подмены"
}
},
"select": {
@@ -81,6 +84,14 @@
},
"brightness_source": {
"name": "Источник яркости"
},
"api_input_interpolation": {
"name": "Интерполяция",
"state": {
"none": "Нет",
"linear": "Линейная",
"nearest": "Ближайший"
}
}
}
}