From 5c0a67a3d2f5b362000780565c35d2382e2b853c Mon Sep 17 00:00:00 2001 From: Josef Zweck <24647999+zweckj@users.noreply.github.com> Date: Sun, 21 Jan 2024 13:26:28 +0100 Subject: [PATCH] Add icon translations for lamarzocco (#108569) icon translations --- .../components/lamarzocco/binary_sensor.py | 15 --- homeassistant/components/lamarzocco/button.py | 1 - .../components/lamarzocco/icons.json | 102 ++++++++++++++++++ homeassistant/components/lamarzocco/number.py | 3 - homeassistant/components/lamarzocco/select.py | 2 - homeassistant/components/lamarzocco/sensor.py | 5 - homeassistant/components/lamarzocco/switch.py | 3 - homeassistant/components/lamarzocco/update.py | 2 - .../snapshots/test_binary_sensor.ambr | 6 +- .../lamarzocco/snapshots/test_button.ambr | 3 +- .../lamarzocco/snapshots/test_number.ambr | 15 +-- .../lamarzocco/snapshots/test_select.ambr | 12 +-- .../lamarzocco/snapshots/test_sensor.ambr | 15 +-- .../lamarzocco/snapshots/test_switch.ambr | 9 +- .../lamarzocco/snapshots/test_update.ambr | 6 +- 15 files changed, 124 insertions(+), 75 deletions(-) create mode 100644 homeassistant/components/lamarzocco/icons.json diff --git a/homeassistant/components/lamarzocco/binary_sensor.py b/homeassistant/components/lamarzocco/binary_sensor.py index a0f4033710c..0eb28fa9558 100644 --- a/homeassistant/components/lamarzocco/binary_sensor.py +++ b/homeassistant/components/lamarzocco/binary_sensor.py @@ -27,8 +27,6 @@ class LaMarzoccoBinarySensorEntityDescription( """Description of a La Marzocco binary sensor.""" is_on_fn: Callable[[LaMarzoccoClient], bool] - icon_on: str - icon_off: str ENTITIES: tuple[LaMarzoccoBinarySensorEntityDescription, ...] = ( @@ -36,8 +34,6 @@ ENTITIES: tuple[LaMarzoccoBinarySensorEntityDescription, ...] = ( key="water_tank", translation_key="water_tank", device_class=BinarySensorDeviceClass.PROBLEM, - icon_on="mdi:water-remove", - icon_off="mdi:water-check", is_on_fn=lambda lm: not lm.current_status.get("water_reservoir_contact"), entity_category=EntityCategory.DIAGNOSTIC, supported_fn=lambda coordinator: coordinator.local_connection_configured, @@ -46,8 +42,6 @@ ENTITIES: tuple[LaMarzoccoBinarySensorEntityDescription, ...] = ( key="brew_active", translation_key="brew_active", device_class=BinarySensorDeviceClass.RUNNING, - icon_off="mdi:cup-off", - icon_on="mdi:cup-water", is_on_fn=lambda lm: bool(lm.current_status.get("brew_active")), available_fn=lambda lm: lm.websocket_connected, entity_category=EntityCategory.DIAGNOSTIC, @@ -75,15 +69,6 @@ class LaMarzoccoBinarySensorEntity(LaMarzoccoEntity, BinarySensorEntity): entity_description: LaMarzoccoBinarySensorEntityDescription - @property - def icon(self) -> str | None: - """Return the icon.""" - return ( - self.entity_description.icon_on - if self.is_on - else self.entity_description.icon_off - ) - @property def is_on(self) -> bool: """Return true if the binary sensor is on.""" diff --git a/homeassistant/components/lamarzocco/button.py b/homeassistant/components/lamarzocco/button.py index 689250fa37b..68bae5feeb9 100644 --- a/homeassistant/components/lamarzocco/button.py +++ b/homeassistant/components/lamarzocco/button.py @@ -29,7 +29,6 @@ ENTITIES: tuple[LaMarzoccoButtonEntityDescription, ...] = ( LaMarzoccoButtonEntityDescription( key="start_backflush", translation_key="start_backflush", - icon="mdi:water-sync", press_fn=lambda lm: lm.start_backflush(), ), ) diff --git a/homeassistant/components/lamarzocco/icons.json b/homeassistant/components/lamarzocco/icons.json new file mode 100644 index 00000000000..c893ba42848 --- /dev/null +++ b/homeassistant/components/lamarzocco/icons.json @@ -0,0 +1,102 @@ +{ + "entity": { + "binary_sensor": { + "water_tank": { + "default": "mdi:water", + "state": { + "on": "mdi:water-alert", + "off": "mdi:water-check" + } + }, + "brew_active": { + "default": "mdi:cup", + "state": { + "on": "mdi:cup-water", + "off": "mdi:cup-off" + } + } + }, + "button": { + "start_backflush": { + "default": "mdi:water-sync" + } + }, + "number": { + "coffee_temp": { + "default": "mdi:thermometer-water" + }, + "steam_temp": { + "default": "mdi:thermometer-water" + }, + "tea_water_duration": { + "default": "mdi:timer-sand" + } + }, + "select": { + "steam_temp_select": { + "default": "mdi:thermometer", + "state": { + "1": "mdi:thermometer-low", + "2": "mdi:thermometer", + "3": "mdi:thermometer-high" + } + }, + "prebrew_infusion_select": { + "default": "mdi:water-pump-off", + "state": { + "disabled": "mdi:water-pump-off", + "prebrew": "mdi:water-pump", + "preinfusion": "mdi:water-pump" + } + } + }, + "sensor": { + "drink_stats_coffee": { + "default": "mdi:chart-line" + }, + "drink_stats_flushing": { + "default": "mdi:chart-line" + }, + "shot_timer": { + "default": "mdi:timer" + }, + "current_temp_coffee": { + "default": "mdi:thermometer" + }, + "current_temp_steam": { + "default": "mdi:thermometer" + } + }, + "switch": { + "main": { + "default": "mdi:power", + "state": { + "on": "mdi:power", + "off": "mdi:power-off" + } + }, + "auto_on_off": { + "default": "mdi:alarm", + "state": { + "on": "mdi:alarm", + "off": "mdi:alarm-off" + } + }, + "steam_boiler_enable": { + "default": "mdi:water-boiler", + "state": { + "on": "mdi:water-boiler", + "off": "mdi:water-boiler-off" + } + } + }, + "update": { + "machine_firmware": { + "default": "mdi:cloud-download" + }, + "gateway_firmware": { + "default": "mdi:cloud-download" + } + } + } +} diff --git a/homeassistant/components/lamarzocco/number.py b/homeassistant/components/lamarzocco/number.py index c14f04f05d8..76632d4a5b8 100644 --- a/homeassistant/components/lamarzocco/number.py +++ b/homeassistant/components/lamarzocco/number.py @@ -44,7 +44,6 @@ ENTITIES: tuple[LaMarzoccoNumberEntityDescription, ...] = ( LaMarzoccoNumberEntityDescription( key="coffee_temp", translation_key="coffee_temp", - icon="mdi:coffee-maker", device_class=NumberDeviceClass.TEMPERATURE, native_unit_of_measurement=UnitOfTemperature.CELSIUS, native_step=PRECISION_TENTHS, @@ -56,7 +55,6 @@ ENTITIES: tuple[LaMarzoccoNumberEntityDescription, ...] = ( LaMarzoccoNumberEntityDescription( key="steam_temp", translation_key="steam_temp", - icon="mdi:kettle-steam", device_class=NumberDeviceClass.TEMPERATURE, native_unit_of_measurement=UnitOfTemperature.CELSIUS, native_step=PRECISION_WHOLE, @@ -73,7 +71,6 @@ ENTITIES: tuple[LaMarzoccoNumberEntityDescription, ...] = ( LaMarzoccoNumberEntityDescription( key="tea_water_duration", translation_key="tea_water_duration", - icon="mdi:water-percent", device_class=NumberDeviceClass.DURATION, native_unit_of_measurement=UnitOfTime.SECONDS, native_step=PRECISION_WHOLE, diff --git a/homeassistant/components/lamarzocco/select.py b/homeassistant/components/lamarzocco/select.py index f29dabae529..1e70000a479 100644 --- a/homeassistant/components/lamarzocco/select.py +++ b/homeassistant/components/lamarzocco/select.py @@ -34,7 +34,6 @@ ENTITIES: tuple[LaMarzoccoSelectEntityDescription, ...] = ( LaMarzoccoSelectEntityDescription( key="steam_temp_select", translation_key="steam_temp_select", - icon="mdi:water-thermometer", options=["1", "2", "3"], select_option_fn=lambda coordinator, option: coordinator.lm.set_steam_level( int(option) @@ -46,7 +45,6 @@ ENTITIES: tuple[LaMarzoccoSelectEntityDescription, ...] = ( LaMarzoccoSelectEntityDescription( key="prebrew_infusion_select", translation_key="prebrew_infusion_select", - icon="mdi:water-plus", options=["disabled", "prebrew", "preinfusion"], select_option_fn=lambda coordinator, option: coordinator.lm.select_pre_brew_infusion_mode(option.capitalize()), diff --git a/homeassistant/components/lamarzocco/sensor.py b/homeassistant/components/lamarzocco/sensor.py index 63292b95ae3..c46b965850c 100644 --- a/homeassistant/components/lamarzocco/sensor.py +++ b/homeassistant/components/lamarzocco/sensor.py @@ -34,7 +34,6 @@ ENTITIES: tuple[LaMarzoccoSensorEntityDescription, ...] = ( LaMarzoccoSensorEntityDescription( key="drink_stats_coffee", translation_key="drink_stats_coffee", - icon="mdi:chart-line", native_unit_of_measurement="drinks", state_class=SensorStateClass.TOTAL_INCREASING, value_fn=lambda lm: lm.current_status.get("drinks_k1", 0), @@ -43,7 +42,6 @@ ENTITIES: tuple[LaMarzoccoSensorEntityDescription, ...] = ( LaMarzoccoSensorEntityDescription( key="drink_stats_flushing", translation_key="drink_stats_flushing", - icon="mdi:chart-line", native_unit_of_measurement="drinks", state_class=SensorStateClass.TOTAL_INCREASING, value_fn=lambda lm: lm.current_status.get("total_flushing", 0), @@ -52,7 +50,6 @@ ENTITIES: tuple[LaMarzoccoSensorEntityDescription, ...] = ( LaMarzoccoSensorEntityDescription( key="shot_timer", translation_key="shot_timer", - icon="mdi:timer", native_unit_of_measurement=UnitOfTime.SECONDS, state_class=SensorStateClass.MEASUREMENT, device_class=SensorDeviceClass.DURATION, @@ -64,7 +61,6 @@ ENTITIES: tuple[LaMarzoccoSensorEntityDescription, ...] = ( LaMarzoccoSensorEntityDescription( key="current_temp_coffee", translation_key="current_temp_coffee", - icon="mdi:thermometer", native_unit_of_measurement=UnitOfTemperature.CELSIUS, state_class=SensorStateClass.MEASUREMENT, device_class=SensorDeviceClass.TEMPERATURE, @@ -73,7 +69,6 @@ ENTITIES: tuple[LaMarzoccoSensorEntityDescription, ...] = ( LaMarzoccoSensorEntityDescription( key="current_temp_steam", translation_key="current_temp_steam", - icon="mdi:thermometer", native_unit_of_measurement=UnitOfTemperature.CELSIUS, state_class=SensorStateClass.MEASUREMENT, device_class=SensorDeviceClass.TEMPERATURE, diff --git a/homeassistant/components/lamarzocco/switch.py b/homeassistant/components/lamarzocco/switch.py index fe9c6daa9cf..4cab49064e7 100644 --- a/homeassistant/components/lamarzocco/switch.py +++ b/homeassistant/components/lamarzocco/switch.py @@ -29,14 +29,12 @@ ENTITIES: tuple[LaMarzoccoSwitchEntityDescription, ...] = ( LaMarzoccoSwitchEntityDescription( key="main", name=None, - icon="mdi:power", control_fn=lambda coordinator, state: coordinator.lm.set_power(state), is_on_fn=lambda coordinator: coordinator.lm.current_status["power"], ), LaMarzoccoSwitchEntityDescription( key="auto_on_off", translation_key="auto_on_off", - icon="mdi:alarm", control_fn=lambda coordinator, state: coordinator.lm.set_auto_on_off_global( state ), @@ -47,7 +45,6 @@ ENTITIES: tuple[LaMarzoccoSwitchEntityDescription, ...] = ( LaMarzoccoSwitchEntityDescription( key="steam_boiler_enable", translation_key="steam_boiler", - icon="mdi:water-boiler", control_fn=lambda coordinator, state: coordinator.lm.set_steam(state), is_on_fn=lambda coordinator: coordinator.lm.current_status[ "steam_boiler_enable" diff --git a/homeassistant/components/lamarzocco/update.py b/homeassistant/components/lamarzocco/update.py index 6c0a5a990ad..cc3e665725b 100644 --- a/homeassistant/components/lamarzocco/update.py +++ b/homeassistant/components/lamarzocco/update.py @@ -40,7 +40,6 @@ ENTITIES: tuple[LaMarzoccoUpdateEntityDescription, ...] = ( key="machine_firmware", translation_key="machine_firmware", device_class=UpdateDeviceClass.FIRMWARE, - icon="mdi:cloud-download", current_fw_fn=lambda lm: lm.firmware_version, latest_fw_fn=lambda lm: lm.latest_firmware_version, component=LaMarzoccoUpdateableComponent.MACHINE, @@ -50,7 +49,6 @@ ENTITIES: tuple[LaMarzoccoUpdateEntityDescription, ...] = ( key="gateway_firmware", translation_key="gateway_firmware", device_class=UpdateDeviceClass.FIRMWARE, - icon="mdi:cloud-download", current_fw_fn=lambda lm: lm.gateway_version, latest_fw_fn=lambda lm: lm.latest_gateway_version, component=LaMarzoccoUpdateableComponent.GATEWAY, diff --git a/tests/components/lamarzocco/snapshots/test_binary_sensor.ambr b/tests/components/lamarzocco/snapshots/test_binary_sensor.ambr index 4fb8c3cb828..12acc6757e2 100644 --- a/tests/components/lamarzocco/snapshots/test_binary_sensor.ambr +++ b/tests/components/lamarzocco/snapshots/test_binary_sensor.ambr @@ -4,7 +4,6 @@ 'attributes': ReadOnlyDict({ 'device_class': 'running', 'friendly_name': 'GS01234 Brewing active', - 'icon': 'mdi:cup-off', }), 'context': , 'entity_id': 'binary_sensor.gs01234_brewing_active', @@ -34,7 +33,7 @@ 'options': dict({ }), 'original_device_class': , - 'original_icon': 'mdi:cup-off', + 'original_icon': None, 'original_name': 'Brewing active', 'platform': 'lamarzocco', 'previous_unique_id': None, @@ -49,7 +48,6 @@ 'attributes': ReadOnlyDict({ 'device_class': 'problem', 'friendly_name': 'GS01234 Water tank empty', - 'icon': 'mdi:water-check', }), 'context': , 'entity_id': 'binary_sensor.gs01234_water_tank_empty', @@ -79,7 +77,7 @@ 'options': dict({ }), 'original_device_class': , - 'original_icon': 'mdi:water-check', + 'original_icon': None, 'original_name': 'Water tank empty', 'platform': 'lamarzocco', 'previous_unique_id': None, diff --git a/tests/components/lamarzocco/snapshots/test_button.ambr b/tests/components/lamarzocco/snapshots/test_button.ambr index e092032e8f5..2f15c70c8cc 100644 --- a/tests/components/lamarzocco/snapshots/test_button.ambr +++ b/tests/components/lamarzocco/snapshots/test_button.ambr @@ -3,7 +3,6 @@ StateSnapshot({ 'attributes': ReadOnlyDict({ 'friendly_name': 'GS01234 Start backflush', - 'icon': 'mdi:water-sync', }), 'context': , 'entity_id': 'button.gs01234_start_backflush', @@ -33,7 +32,7 @@ 'options': dict({ }), 'original_device_class': None, - 'original_icon': 'mdi:water-sync', + 'original_icon': None, 'original_name': 'Start backflush', 'platform': 'lamarzocco', 'previous_unique_id': None, diff --git a/tests/components/lamarzocco/snapshots/test_number.ambr b/tests/components/lamarzocco/snapshots/test_number.ambr index d20801aed90..3c9fdce101f 100644 --- a/tests/components/lamarzocco/snapshots/test_number.ambr +++ b/tests/components/lamarzocco/snapshots/test_number.ambr @@ -4,7 +4,6 @@ 'attributes': ReadOnlyDict({ 'device_class': 'temperature', 'friendly_name': 'GS01234 Coffee target temperature', - 'icon': 'mdi:coffee-maker', 'max': 104, 'min': 85, 'mode': , @@ -44,7 +43,7 @@ 'options': dict({ }), 'original_device_class': , - 'original_icon': 'mdi:coffee-maker', + 'original_icon': None, 'original_name': 'Coffee target temperature', 'platform': 'lamarzocco', 'previous_unique_id': None, @@ -59,7 +58,6 @@ 'attributes': ReadOnlyDict({ 'device_class': 'temperature', 'friendly_name': 'GS01234 Steam target temperature', - 'icon': 'mdi:kettle-steam', 'max': 131, 'min': 126, 'mode': , @@ -99,7 +97,7 @@ 'options': dict({ }), 'original_device_class': , - 'original_icon': 'mdi:kettle-steam', + 'original_icon': None, 'original_name': 'Steam target temperature', 'platform': 'lamarzocco', 'previous_unique_id': None, @@ -114,7 +112,6 @@ 'attributes': ReadOnlyDict({ 'device_class': 'temperature', 'friendly_name': 'GS01234 Steam target temperature', - 'icon': 'mdi:kettle-steam', 'max': 131, 'min': 126, 'mode': , @@ -154,7 +151,7 @@ 'options': dict({ }), 'original_device_class': , - 'original_icon': 'mdi:kettle-steam', + 'original_icon': None, 'original_name': 'Steam target temperature', 'platform': 'lamarzocco', 'previous_unique_id': None, @@ -169,7 +166,6 @@ 'attributes': ReadOnlyDict({ 'device_class': 'duration', 'friendly_name': 'GS01234 Tea water duration', - 'icon': 'mdi:water-percent', 'max': 30, 'min': 0, 'mode': , @@ -209,7 +205,7 @@ 'options': dict({ }), 'original_device_class': , - 'original_icon': 'mdi:water-percent', + 'original_icon': None, 'original_name': 'Tea water duration', 'platform': 'lamarzocco', 'previous_unique_id': None, @@ -224,7 +220,6 @@ 'attributes': ReadOnlyDict({ 'device_class': 'duration', 'friendly_name': 'GS01234 Tea water duration', - 'icon': 'mdi:water-percent', 'max': 30, 'min': 0, 'mode': , @@ -264,7 +259,7 @@ 'options': dict({ }), 'original_device_class': , - 'original_icon': 'mdi:water-percent', + 'original_icon': None, 'original_name': 'Tea water duration', 'platform': 'lamarzocco', 'previous_unique_id': None, diff --git a/tests/components/lamarzocco/snapshots/test_select.ambr b/tests/components/lamarzocco/snapshots/test_select.ambr index e35b721436c..4f64eafb855 100644 --- a/tests/components/lamarzocco/snapshots/test_select.ambr +++ b/tests/components/lamarzocco/snapshots/test_select.ambr @@ -3,7 +3,6 @@ StateSnapshot({ 'attributes': ReadOnlyDict({ 'friendly_name': 'GS01234 Prebrew/-infusion mode', - 'icon': 'mdi:water-plus', 'options': list([ 'disabled', 'prebrew', @@ -44,7 +43,7 @@ 'options': dict({ }), 'original_device_class': None, - 'original_icon': 'mdi:water-plus', + 'original_icon': None, 'original_name': 'Prebrew/-infusion mode', 'platform': 'lamarzocco', 'previous_unique_id': None, @@ -58,7 +57,6 @@ StateSnapshot({ 'attributes': ReadOnlyDict({ 'friendly_name': 'LM01234 Prebrew/-infusion mode', - 'icon': 'mdi:water-plus', 'options': list([ 'disabled', 'prebrew', @@ -99,7 +97,7 @@ 'options': dict({ }), 'original_device_class': None, - 'original_icon': 'mdi:water-plus', + 'original_icon': None, 'original_name': 'Prebrew/-infusion mode', 'platform': 'lamarzocco', 'previous_unique_id': None, @@ -113,7 +111,6 @@ StateSnapshot({ 'attributes': ReadOnlyDict({ 'friendly_name': 'MR01234 Prebrew/-infusion mode', - 'icon': 'mdi:water-plus', 'options': list([ 'disabled', 'prebrew', @@ -154,7 +151,7 @@ 'options': dict({ }), 'original_device_class': None, - 'original_icon': 'mdi:water-plus', + 'original_icon': None, 'original_name': 'Prebrew/-infusion mode', 'platform': 'lamarzocco', 'previous_unique_id': None, @@ -168,7 +165,6 @@ StateSnapshot({ 'attributes': ReadOnlyDict({ 'friendly_name': 'MR01234 Steam level', - 'icon': 'mdi:water-thermometer', 'options': list([ '1', '2', @@ -209,7 +205,7 @@ 'options': dict({ }), 'original_device_class': None, - 'original_icon': 'mdi:water-thermometer', + 'original_icon': None, 'original_name': 'Steam level', 'platform': 'lamarzocco', 'previous_unique_id': None, diff --git a/tests/components/lamarzocco/snapshots/test_sensor.ambr b/tests/components/lamarzocco/snapshots/test_sensor.ambr index e3719a25a33..4228252f526 100644 --- a/tests/components/lamarzocco/snapshots/test_sensor.ambr +++ b/tests/components/lamarzocco/snapshots/test_sensor.ambr @@ -22,7 +22,7 @@ 'options': dict({ }), 'original_device_class': , - 'original_icon': 'mdi:thermometer', + 'original_icon': None, 'original_name': 'Current coffee temperature', 'platform': 'lamarzocco', 'previous_unique_id': None, @@ -37,7 +37,6 @@ 'attributes': ReadOnlyDict({ 'device_class': 'temperature', 'friendly_name': 'GS01234 Current coffee temperature', - 'icon': 'mdi:thermometer', 'state_class': , 'unit_of_measurement': , }), @@ -71,7 +70,7 @@ 'options': dict({ }), 'original_device_class': , - 'original_icon': 'mdi:thermometer', + 'original_icon': None, 'original_name': 'Current steam temperature', 'platform': 'lamarzocco', 'previous_unique_id': None, @@ -86,7 +85,6 @@ 'attributes': ReadOnlyDict({ 'device_class': 'temperature', 'friendly_name': 'GS01234 Current steam temperature', - 'icon': 'mdi:thermometer', 'state_class': , 'unit_of_measurement': , }), @@ -120,7 +118,7 @@ 'options': dict({ }), 'original_device_class': , - 'original_icon': 'mdi:timer', + 'original_icon': None, 'original_name': 'Shot timer', 'platform': 'lamarzocco', 'previous_unique_id': None, @@ -135,7 +133,6 @@ 'attributes': ReadOnlyDict({ 'device_class': 'duration', 'friendly_name': 'GS01234 Shot timer', - 'icon': 'mdi:timer', 'state_class': , 'unit_of_measurement': , }), @@ -169,7 +166,7 @@ 'options': dict({ }), 'original_device_class': None, - 'original_icon': 'mdi:chart-line', + 'original_icon': None, 'original_name': 'Total coffees made', 'platform': 'lamarzocco', 'previous_unique_id': None, @@ -183,7 +180,6 @@ StateSnapshot({ 'attributes': ReadOnlyDict({ 'friendly_name': 'GS01234 Total coffees made', - 'icon': 'mdi:chart-line', 'state_class': , 'unit_of_measurement': 'drinks', }), @@ -217,7 +213,7 @@ 'options': dict({ }), 'original_device_class': None, - 'original_icon': 'mdi:chart-line', + 'original_icon': None, 'original_name': 'Total flushes made', 'platform': 'lamarzocco', 'previous_unique_id': None, @@ -231,7 +227,6 @@ StateSnapshot({ 'attributes': ReadOnlyDict({ 'friendly_name': 'GS01234 Total flushes made', - 'icon': 'mdi:chart-line', 'state_class': , 'unit_of_measurement': 'drinks', }), diff --git a/tests/components/lamarzocco/snapshots/test_switch.ambr b/tests/components/lamarzocco/snapshots/test_switch.ambr index 36df947bb70..bf7062d65bd 100644 --- a/tests/components/lamarzocco/snapshots/test_switch.ambr +++ b/tests/components/lamarzocco/snapshots/test_switch.ambr @@ -31,7 +31,6 @@ StateSnapshot({ 'attributes': ReadOnlyDict({ 'friendly_name': 'GS01234', - 'icon': 'mdi:power', }), 'context': , 'entity_id': 'switch.gs01234', @@ -61,7 +60,7 @@ 'options': dict({ }), 'original_device_class': None, - 'original_icon': 'mdi:power', + 'original_icon': None, 'original_name': None, 'platform': 'lamarzocco', 'previous_unique_id': None, @@ -75,7 +74,6 @@ StateSnapshot({ 'attributes': ReadOnlyDict({ 'friendly_name': 'GS01234 Auto on/off', - 'icon': 'mdi:alarm', }), 'context': , 'entity_id': 'switch.gs01234_auto_on_off', @@ -105,7 +103,7 @@ 'options': dict({ }), 'original_device_class': None, - 'original_icon': 'mdi:alarm', + 'original_icon': None, 'original_name': 'Auto on/off', 'platform': 'lamarzocco', 'previous_unique_id': None, @@ -119,7 +117,6 @@ StateSnapshot({ 'attributes': ReadOnlyDict({ 'friendly_name': 'GS01234 Steam boiler', - 'icon': 'mdi:water-boiler', }), 'context': , 'entity_id': 'switch.gs01234_steam_boiler', @@ -149,7 +146,7 @@ 'options': dict({ }), 'original_device_class': None, - 'original_icon': 'mdi:water-boiler', + 'original_icon': None, 'original_name': 'Steam boiler', 'platform': 'lamarzocco', 'previous_unique_id': None, diff --git a/tests/components/lamarzocco/snapshots/test_update.ambr b/tests/components/lamarzocco/snapshots/test_update.ambr index 29d09278ea2..a1ee4de2c4b 100644 --- a/tests/components/lamarzocco/snapshots/test_update.ambr +++ b/tests/components/lamarzocco/snapshots/test_update.ambr @@ -6,7 +6,6 @@ 'device_class': 'firmware', 'entity_picture': 'https://brands.home-assistant.io/_/lamarzocco/icon.png', 'friendly_name': 'GS01234 Gateway firmware', - 'icon': 'mdi:cloud-download', 'in_progress': False, 'installed_version': 'v2.2-rc0', 'latest_version': 'v3.1-rc4', @@ -44,7 +43,7 @@ 'options': dict({ }), 'original_device_class': , - 'original_icon': 'mdi:cloud-download', + 'original_icon': None, 'original_name': 'Gateway firmware', 'platform': 'lamarzocco', 'previous_unique_id': None, @@ -61,7 +60,6 @@ 'device_class': 'firmware', 'entity_picture': 'https://brands.home-assistant.io/_/lamarzocco/icon.png', 'friendly_name': 'GS01234 Machine firmware', - 'icon': 'mdi:cloud-download', 'in_progress': False, 'installed_version': '1.1', 'latest_version': '1.2', @@ -99,7 +97,7 @@ 'options': dict({ }), 'original_device_class': , - 'original_icon': 'mdi:cloud-download', + 'original_icon': None, 'original_name': 'Machine firmware', 'platform': 'lamarzocco', 'previous_unique_id': None,