From 5ea6811d013048ed0603d655ef34c0fd2b9141da Mon Sep 17 00:00:00 2001 From: TheJulianJES Date: Mon, 26 May 2025 19:31:25 +0200 Subject: [PATCH] Add translation for ZHA light effect (#145630) * Add translations for ZHA light effects * Add icons for ZHA light effects * Fix capitalization of "Color loop" Co-authored-by: Joost Lekkerkerker --------- Co-authored-by: Joost Lekkerkerker --- homeassistant/components/zha/icons.json | 11 +++++++++++ homeassistant/components/zha/strings.json | 9 ++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/zha/icons.json b/homeassistant/components/zha/icons.json index d43e213aa4a..e487f2ee24f 100644 --- a/homeassistant/components/zha/icons.json +++ b/homeassistant/components/zha/icons.json @@ -5,6 +5,17 @@ "default": "mdi:hand-wave" } }, + "light": { + "light": { + "state_attributes": { + "effect": { + "state": { + "colorloop": "mdi:looks" + } + } + } + } + }, "number": { "timer_duration": { "default": "mdi:timer" diff --git a/homeassistant/components/zha/strings.json b/homeassistant/components/zha/strings.json index 33158dacf70..95bf339f7d9 100644 --- a/homeassistant/components/zha/strings.json +++ b/homeassistant/components/zha/strings.json @@ -675,7 +675,14 @@ }, "light": { "light": { - "name": "[%key:component::light::title%]" + "name": "[%key:component::light::title%]", + "state_attributes": { + "effect": { + "state": { + "colorloop": "Color loop" + } + } + } }, "light_group": { "name": "Light group"