1
0
mirror of https://github.com/home-assistant/core.git synced 2026-07-12 09:07:59 +01:00

Add dynamic icon for lightbulb group (#176218)

This commit is contained in:
karwosts
2026-07-11 00:50:15 +08:00
committed by Franck Nijhof
parent 4940732c54
commit d085ce800a
3 changed files with 11 additions and 2 deletions
+10
View File
@@ -1,4 +1,14 @@
{
"entity": {
"light": {
"light": {
"default": "mdi:lightbulb-group",
"state": {
"off": "mdi:lightbulb-group-off"
}
}
}
},
"services": {
"reload": {
"service": "mdi:reload"
+1 -1
View File
@@ -147,7 +147,7 @@ class LightGroup(GroupEntity, LightEntity):
"""Representation of a light group."""
_attr_available = False
_attr_icon = "mdi:lightbulb-group"
_attr_translation_key = "light"
_attr_max_color_temp_kelvin = 6500
_attr_min_color_temp_kelvin = 2000
_attr_should_poll = False
@@ -475,7 +475,6 @@ EVENT_ATTRS = [{"event_types": []}, {"event_type": None}]
FAN_ATTRS = [{"supported_features": 0}, {}]
LIGHT_ATTRS = [
{
"icon": "mdi:lightbulb-group",
"supported_color_modes": ["onoff"],
"supported_features": 0,
},