mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17: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, ...] = (
|
GREE_SWITCHES: tuple[GreeSwitchEntityDescription, ...] = (
|
||||||
GreeSwitchEntityDescription(
|
GreeSwitchEntityDescription(
|
||||||
icon="mdi:lightbulb",
|
|
||||||
key="Panel Light",
|
key="Panel Light",
|
||||||
translation_key="light",
|
translation_key="light",
|
||||||
get_value_fn=lambda d: d.light,
|
get_value_fn=lambda d: d.light,
|
||||||
@ -81,7 +80,6 @@ GREE_SWITCHES: tuple[GreeSwitchEntityDescription, ...] = (
|
|||||||
set_value_fn=_set_xfan,
|
set_value_fn=_set_xfan,
|
||||||
),
|
),
|
||||||
GreeSwitchEntityDescription(
|
GreeSwitchEntityDescription(
|
||||||
icon="mdi:pine-tree",
|
|
||||||
key="Health mode",
|
key="Health mode",
|
||||||
translation_key="health_mode",
|
translation_key="health_mode",
|
||||||
get_value_fn=lambda d: d.anion,
|
get_value_fn=lambda d: d.anion,
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
'attributes': ReadOnlyDict({
|
'attributes': ReadOnlyDict({
|
||||||
'device_class': 'switch',
|
'device_class': 'switch',
|
||||||
'friendly_name': 'fake-device-1 Panel light',
|
'friendly_name': 'fake-device-1 Panel light',
|
||||||
'icon': 'mdi:lightbulb',
|
|
||||||
}),
|
}),
|
||||||
'context': <ANY>,
|
'context': <ANY>,
|
||||||
'entity_id': 'switch.fake_device_1_panel_light',
|
'entity_id': 'switch.fake_device_1_panel_light',
|
||||||
@ -50,7 +49,6 @@
|
|||||||
'attributes': ReadOnlyDict({
|
'attributes': ReadOnlyDict({
|
||||||
'device_class': 'switch',
|
'device_class': 'switch',
|
||||||
'friendly_name': 'fake-device-1 Health mode',
|
'friendly_name': 'fake-device-1 Health mode',
|
||||||
'icon': 'mdi:pine-tree',
|
|
||||||
}),
|
}),
|
||||||
'context': <ANY>,
|
'context': <ANY>,
|
||||||
'entity_id': 'switch.fake_device_1_health_mode',
|
'entity_id': 'switch.fake_device_1_health_mode',
|
||||||
@ -84,7 +82,7 @@
|
|||||||
'options': dict({
|
'options': dict({
|
||||||
}),
|
}),
|
||||||
'original_device_class': <SwitchDeviceClass.SWITCH: 'switch'>,
|
'original_device_class': <SwitchDeviceClass.SWITCH: 'switch'>,
|
||||||
'original_icon': 'mdi:lightbulb',
|
'original_icon': None,
|
||||||
'original_name': 'Panel light',
|
'original_name': 'Panel light',
|
||||||
'platform': 'gree',
|
'platform': 'gree',
|
||||||
'previous_unique_id': None,
|
'previous_unique_id': None,
|
||||||
@ -208,7 +206,7 @@
|
|||||||
'options': dict({
|
'options': dict({
|
||||||
}),
|
}),
|
||||||
'original_device_class': <SwitchDeviceClass.SWITCH: 'switch'>,
|
'original_device_class': <SwitchDeviceClass.SWITCH: 'switch'>,
|
||||||
'original_icon': 'mdi:pine-tree',
|
'original_icon': None,
|
||||||
'original_name': 'Health mode',
|
'original_name': 'Health mode',
|
||||||
'platform': 'gree',
|
'platform': 'gree',
|
||||||
'previous_unique_id': None,
|
'previous_unique_id': None,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user