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
+11
View File
@@ -73,6 +73,9 @@
},
"ha_light_color_tolerance": {
"name": "Color Tolerance"
},
"api_input_timeout": {
"name": "Fallback Timeout"
}
},
"select": {
@@ -81,6 +84,14 @@
},
"brightness_source": {
"name": "Brightness Source"
},
"api_input_interpolation": {
"name": "Interpolation",
"state": {
"none": "None",
"linear": "Linear",
"nearest": "Nearest"
}
}
}
},