mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 19:57:07 +00:00
Add icon translations to Gree (#111662)
* Add icon translations to Gree * Add icon translations to Gree
This commit is contained in:
parent
c52e2038be
commit
b117deff58
12
homeassistant/components/gree/icons.json
Normal file
12
homeassistant/components/gree/icons.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"entity": {
|
||||
"switch": {
|
||||
"light": {
|
||||
"default": "mdi:lightbulb"
|
||||
},
|
||||
"health_mode": {
|
||||
"default": "mdi:pine-tree"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -56,7 +56,6 @@ def _set_anion(device: Device, value: bool) -> None:
|
||||
|
||||
GREE_SWITCHES: tuple[GreeSwitchEntityDescription, ...] = (
|
||||
GreeSwitchEntityDescription(
|
||||
icon="mdi:lightbulb",
|
||||
key="Panel Light",
|
||||
translation_key="light",
|
||||
get_value_fn=lambda d: d.light,
|
||||
@ -81,7 +80,6 @@ GREE_SWITCHES: tuple[GreeSwitchEntityDescription, ...] = (
|
||||
set_value_fn=_set_xfan,
|
||||
),
|
||||
GreeSwitchEntityDescription(
|
||||
icon="mdi:pine-tree",
|
||||
key="Health mode",
|
||||
translation_key="health_mode",
|
||||
get_value_fn=lambda d: d.anion,
|
||||
|
@ -5,7 +5,6 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'switch',
|
||||
'friendly_name': 'fake-device-1 Panel light',
|
||||
'icon': 'mdi:lightbulb',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'switch.fake_device_1_panel_light',
|
||||
@ -50,7 +49,6 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'switch',
|
||||
'friendly_name': 'fake-device-1 Health mode',
|
||||
'icon': 'mdi:pine-tree',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'switch.fake_device_1_health_mode',
|
||||
@ -84,7 +82,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': <SwitchDeviceClass.SWITCH: 'switch'>,
|
||||
'original_icon': 'mdi:lightbulb',
|
||||
'original_icon': None,
|
||||
'original_name': 'Panel light',
|
||||
'platform': 'gree',
|
||||
'previous_unique_id': None,
|
||||
@ -208,7 +206,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': <SwitchDeviceClass.SWITCH: 'switch'>,
|
||||
'original_icon': 'mdi:pine-tree',
|
||||
'original_icon': None,
|
||||
'original_name': 'Health mode',
|
||||
'platform': 'gree',
|
||||
'previous_unique_id': None,
|
||||
|
Loading…
x
Reference in New Issue
Block a user