From fdb85f9e9e01624535db3f74a23fb9083c3ca886 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Wed, 6 Mar 2024 06:31:58 +0100 Subject: [PATCH] Add icon translations to TechnoVE (#112306) * Add icon translations to TechnoVE * Add icon translations to TechnoVE --- homeassistant/components/technove/icons.json | 9 +++++++++ homeassistant/components/technove/sensor.py | 1 - tests/components/technove/snapshots/test_sensor.ambr | 3 +-- 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 homeassistant/components/technove/icons.json diff --git a/homeassistant/components/technove/icons.json b/homeassistant/components/technove/icons.json new file mode 100644 index 00000000000..ff47d3c32bc --- /dev/null +++ b/homeassistant/components/technove/icons.json @@ -0,0 +1,9 @@ +{ + "entity": { + "sensor": { + "ssid": { + "default": "mdi:wifi" + } + } + } +} diff --git a/homeassistant/components/technove/sensor.py b/homeassistant/components/technove/sensor.py index e4d3822ee1b..576ba88cec6 100644 --- a/homeassistant/components/technove/sensor.py +++ b/homeassistant/components/technove/sensor.py @@ -104,7 +104,6 @@ SENSORS: tuple[TechnoVESensorEntityDescription, ...] = ( TechnoVESensorEntityDescription( key="ssid", translation_key="ssid", - icon="mdi:wifi", entity_category=EntityCategory.DIAGNOSTIC, entity_registry_enabled_default=False, value_fn=lambda station: station.info.network_ssid, diff --git a/tests/components/technove/snapshots/test_sensor.ambr b/tests/components/technove/snapshots/test_sensor.ambr index 941d93107df..ca676ffdca0 100644 --- a/tests/components/technove/snapshots/test_sensor.ambr +++ b/tests/components/technove/snapshots/test_sensor.ambr @@ -433,7 +433,7 @@ 'options': dict({ }), 'original_device_class': None, - 'original_icon': 'mdi:wifi', + 'original_icon': None, 'original_name': 'Wi-Fi network name', 'platform': 'technove', 'previous_unique_id': None, @@ -447,7 +447,6 @@ StateSnapshot({ 'attributes': ReadOnlyDict({ 'friendly_name': 'TechnoVE Station Wi-Fi network name', - 'icon': 'mdi:wifi', }), 'context': , 'entity_id': 'sensor.technove_station_wi_fi_network_name',