Improve action descriptions of LIFX integration (#139329)

Improve action description of lifx integration

- fix sentence-casing on two action names
- change "Kelvin" unit name to proper uppercase
- reference 'Theme' and 'Palette' fields by their friendly names for matching translations
- change paint_theme action description to match HA style
This commit is contained in:
Norbert Rittel 2025-02-26 14:24:19 +01:00 committed by GitHub
parent 0c092f80c7
commit b676c2f61b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,7 +66,7 @@
} }
}, },
"set_state": { "set_state": {
"name": "Set State", "name": "Set state",
"description": "Sets a color/brightness and possibly turn the light on/off.", "description": "Sets a color/brightness and possibly turn the light on/off.",
"fields": { "fields": {
"infrared": { "infrared": {
@ -209,11 +209,11 @@
}, },
"palette": { "palette": {
"name": "Palette", "name": "Palette",
"description": "List of at least 2 and at most 16 colors as hue (0-360), saturation (0-100), brightness (0-100) and kelvin (1500-9000) values to use for this effect. Overrides the theme attribute." "description": "List of at least 2 and at most 16 colors as hue (0-360), saturation (0-100), brightness (0-100) and Kelvin (1500-9000) values to use for this effect. Overrides the 'Theme' attribute."
}, },
"theme": { "theme": {
"name": "[%key:component::lifx::entity::select::theme::name%]", "name": "[%key:component::lifx::entity::select::theme::name%]",
"description": "Predefined color theme to use for the effect. Overridden by the palette attribute." "description": "Predefined color theme to use for the effect. Overridden by the 'Palette' attribute."
}, },
"power_on": { "power_on": {
"name": "Power on", "name": "Power on",
@ -243,7 +243,7 @@
}, },
"palette": { "palette": {
"name": "Palette", "name": "Palette",
"description": "List of 1 to 6 colors as hue (0-360), saturation (0-100), brightness (0-100) and kelvin (1500-9000) values to use for this effect." "description": "List of 1 to 6 colors as hue (0-360), saturation (0-100), brightness (0-100) and Kelvin (1500-9000) values to use for this effect."
}, },
"power_on": { "power_on": {
"name": "Power on", "name": "Power on",
@ -256,16 +256,16 @@
"description": "Stops a running effect." "description": "Stops a running effect."
}, },
"paint_theme": { "paint_theme": {
"name": "Paint Theme", "name": "Paint theme",
"description": "Paint either a provided theme or custom palette across one or more LIFX lights.", "description": "Paints either a provided theme or custom palette across one or more LIFX lights.",
"fields": { "fields": {
"palette": { "palette": {
"name": "Palette", "name": "Palette",
"description": "List of at least 2 and at most 16 colors as hue (0-360), saturation (0-100), brightness (0-100) and kelvin (1500-9000) values to paint across the target lights. Overrides the theme attribute." "description": "List of at least 2 and at most 16 colors as hue (0-360), saturation (0-100), brightness (0-100) and Kelvin (1500-9000) values to paint across the target lights. Overrides the 'Theme' attribute."
}, },
"theme": { "theme": {
"name": "[%key:component::lifx::entity::select::theme::name%]", "name": "[%key:component::lifx::entity::select::theme::name%]",
"description": "Predefined color theme to paint. Overridden by the palette attribute." "description": "Predefined color theme to paint. Overridden by the 'Palette' attribute."
}, },
"transition": { "transition": {
"name": "Transition", "name": "Transition",