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:
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user