diff --git a/homeassistant/components/gree/icons.json b/homeassistant/components/gree/icons.json new file mode 100644 index 00000000000..ac8e45ebf89 --- /dev/null +++ b/homeassistant/components/gree/icons.json @@ -0,0 +1,12 @@ +{ + "entity": { + "switch": { + "light": { + "default": "mdi:lightbulb" + }, + "health_mode": { + "default": "mdi:pine-tree" + } + } + } +} diff --git a/homeassistant/components/gree/switch.py b/homeassistant/components/gree/switch.py index 07e88223306..e18cf28e174 100644 --- a/homeassistant/components/gree/switch.py +++ b/homeassistant/components/gree/switch.py @@ -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, diff --git a/tests/components/gree/snapshots/test_switch.ambr b/tests/components/gree/snapshots/test_switch.ambr index 11ce7c5a060..988771cd517 100644 --- a/tests/components/gree/snapshots/test_switch.ambr +++ b/tests/components/gree/snapshots/test_switch.ambr @@ -5,7 +5,6 @@ 'attributes': ReadOnlyDict({ 'device_class': 'switch', 'friendly_name': 'fake-device-1 Panel light', - 'icon': 'mdi:lightbulb', }), 'context': , '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': , 'entity_id': 'switch.fake_device_1_health_mode', @@ -84,7 +82,7 @@ 'options': dict({ }), 'original_device_class': , - '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': , - 'original_icon': 'mdi:pine-tree', + 'original_icon': None, 'original_name': 'Health mode', 'platform': 'gree', 'previous_unique_id': None,