Add icon translations to Gree (#111662)

* Add icon translations to Gree

* Add icon translations to Gree
This commit is contained in:
Joost Lekkerkerker 2024-02-28 11:38:16 +01:00 committed by GitHub
parent c52e2038be
commit b117deff58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 14 additions and 6 deletions

View File

@ -0,0 +1,12 @@
{
"entity": {
"switch": {
"light": {
"default": "mdi:lightbulb"
},
"health_mode": {
"default": "mdi:pine-tree"
}
}
}
}

View File

@ -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,

View File

@ -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,