mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 23:27:37 +00:00
Add light group icon (#42091)
This commit is contained in:
parent
be431ce12a
commit
6c3362217e
@ -84,6 +84,7 @@ class LightGroup(GroupEntity, light.LightEntity):
|
|||||||
self._entity_ids = entity_ids
|
self._entity_ids = entity_ids
|
||||||
self._is_on = False
|
self._is_on = False
|
||||||
self._available = False
|
self._available = False
|
||||||
|
self._icon = "mdi:lightbulb-group"
|
||||||
self._brightness: Optional[int] = None
|
self._brightness: Optional[int] = None
|
||||||
self._hs_color: Optional[Tuple[float, float]] = None
|
self._hs_color: Optional[Tuple[float, float]] = None
|
||||||
self._color_temp: Optional[int] = None
|
self._color_temp: Optional[int] = None
|
||||||
@ -130,6 +131,11 @@ class LightGroup(GroupEntity, light.LightEntity):
|
|||||||
"""Return whether the light group is available."""
|
"""Return whether the light group is available."""
|
||||||
return self._available
|
return self._available
|
||||||
|
|
||||||
|
@property
|
||||||
|
def icon(self):
|
||||||
|
"""Return the light group icon."""
|
||||||
|
return self._icon
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def brightness(self) -> Optional[int]:
|
def brightness(self) -> Optional[int]:
|
||||||
"""Return the brightness of this light group between 0..255."""
|
"""Return the brightness of this light group between 0..255."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user