From 6c3362217efad87426f674e0a4b8e61bfab051d0 Mon Sep 17 00:00:00 2001 From: Yuval Aboulafia Date: Tue, 20 Oct 2020 14:54:43 +0300 Subject: [PATCH] Add light group icon (#42091) --- homeassistant/components/group/light.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/homeassistant/components/group/light.py b/homeassistant/components/group/light.py index 6d90312e644..00b7321076f 100644 --- a/homeassistant/components/group/light.py +++ b/homeassistant/components/group/light.py @@ -84,6 +84,7 @@ class LightGroup(GroupEntity, light.LightEntity): self._entity_ids = entity_ids self._is_on = False self._available = False + self._icon = "mdi:lightbulb-group" self._brightness: Optional[int] = None self._hs_color: Optional[Tuple[float, float]] = None self._color_temp: Optional[int] = None @@ -130,6 +131,11 @@ class LightGroup(GroupEntity, light.LightEntity): """Return whether the light group is available.""" return self._available + @property + def icon(self): + """Return the light group icon.""" + return self._icon + @property def brightness(self) -> Optional[int]: """Return the brightness of this light group between 0..255."""