From cb3c7f6b0a1975b8b5dfd61fbbcaf553b5465f5d Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Tue, 5 Mar 2024 08:42:45 +0100 Subject: [PATCH] Add icon translations to Rainforest Raven (#112201) --- homeassistant/components/rainforest_raven/icons.json | 12 ++++++++++++ homeassistant/components/rainforest_raven/sensor.py | 2 -- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 homeassistant/components/rainforest_raven/icons.json diff --git a/homeassistant/components/rainforest_raven/icons.json b/homeassistant/components/rainforest_raven/icons.json new file mode 100644 index 00000000000..964ecf92c74 --- /dev/null +++ b/homeassistant/components/rainforest_raven/icons.json @@ -0,0 +1,12 @@ +{ + "entity": { + "sensor": { + "signal_strength": { + "default": "mdi:wifi" + }, + "meter_price": { + "default": "mdi:cash" + } + } + } +} diff --git a/homeassistant/components/rainforest_raven/sensor.py b/homeassistant/components/rainforest_raven/sensor.py index d1f1aebb0f3..fd7df25c603 100644 --- a/homeassistant/components/rainforest_raven/sensor.py +++ b/homeassistant/components/rainforest_raven/sensor.py @@ -70,7 +70,6 @@ DIAGNOSTICS = ( key="link_strength", native_unit_of_measurement=PERCENTAGE, state_class=SensorStateClass.MEASUREMENT, - icon="mdi:wifi", entity_category=EntityCategory.DIAGNOSTIC, attribute_keys=[ "channel", @@ -104,7 +103,6 @@ async def async_setup_entry( translation_key="meter_price", key="price", native_unit_of_measurement=f"{meter_data['PriceCluster']['currency'].value}/{UnitOfEnergy.KILO_WATT_HOUR}", - icon="mdi:cash", state_class=SensorStateClass.MEASUREMENT, attribute_keys=[ "tier",