Add light group icon (#42091)
parent
be431ce12a
commit
6c3362217e
|
@ -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."""
|
||||
|
|
Loading…
Reference in New Issue