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:
@@ -1,4 +1,14 @@
|
||||
{
|
||||
"entity": {
|
||||
"light": {
|
||||
"light": {
|
||||
"default": "mdi:lightbulb-group",
|
||||
"state": {
|
||||
"off": "mdi:lightbulb-group-off"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
"reload": {
|
||||
"service": "mdi:reload"
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user