From fb5e5221ae5686d857ca2109a116489018afb362 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Tue, 5 Mar 2024 08:42:59 +0100 Subject: [PATCH] Add icon translations to Plum lightpad (#112183) --- homeassistant/components/plum_lightpad/icons.json | 9 +++++++++ homeassistant/components/plum_lightpad/light.py | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 homeassistant/components/plum_lightpad/icons.json diff --git a/homeassistant/components/plum_lightpad/icons.json b/homeassistant/components/plum_lightpad/icons.json new file mode 100644 index 00000000000..dd65160e474 --- /dev/null +++ b/homeassistant/components/plum_lightpad/icons.json @@ -0,0 +1,9 @@ +{ + "entity": { + "light": { + "glow_ring": { + "default": "mdi:crop-portrait" + } + } + } +} diff --git a/homeassistant/components/plum_lightpad/light.py b/homeassistant/components/plum_lightpad/light.py index 9464e66e3a9..6d591d29fe4 100644 --- a/homeassistant/components/plum_lightpad/light.py +++ b/homeassistant/components/plum_lightpad/light.py @@ -130,8 +130,8 @@ class GlowRing(LightEntity): _attr_color_mode = ColorMode.HS _attr_should_poll = False + _attr_translation_key = "glow_ring" _attr_supported_color_modes = {ColorMode.HS} - _attr_icon = "mdi:crop-portrait" def __init__(self, lightpad): """Initialize the light."""