From 10c06a1553acb6288f6457a44b88e568685fc111 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Sat, 2 Mar 2024 00:35:40 +0100 Subject: [PATCH] Add icon translations to Ondilo ico (#111990) --- .../components/ondilo_ico/icons.json | 21 +++++++++++++++++++ homeassistant/components/ondilo_ico/sensor.py | 5 ----- 2 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 homeassistant/components/ondilo_ico/icons.json diff --git a/homeassistant/components/ondilo_ico/icons.json b/homeassistant/components/ondilo_ico/icons.json new file mode 100644 index 00000000000..9319b747b28 --- /dev/null +++ b/homeassistant/components/ondilo_ico/icons.json @@ -0,0 +1,21 @@ +{ + "entity": { + "sensor": { + "oxydo_reduction_potential": { + "default": "mdi:pool" + }, + "ph": { + "default": "mdi:pool" + }, + "tds": { + "default": "mdi:pool" + }, + "rssi": { + "default": "mdi:wifi" + }, + "salt": { + "default": "mdi:pool" + } + } + } +} diff --git a/homeassistant/components/ondilo_ico/sensor.py b/homeassistant/components/ondilo_ico/sensor.py index 90c79003b8a..0a39f661b6b 100644 --- a/homeassistant/components/ondilo_ico/sensor.py +++ b/homeassistant/components/ondilo_ico/sensor.py @@ -43,20 +43,17 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = ( key="orp", translation_key="oxydo_reduction_potential", native_unit_of_measurement=UnitOfElectricPotential.MILLIVOLT, - icon="mdi:pool", state_class=SensorStateClass.MEASUREMENT, ), SensorEntityDescription( key="ph", translation_key="ph", - icon="mdi:pool", state_class=SensorStateClass.MEASUREMENT, ), SensorEntityDescription( key="tds", translation_key="tds", native_unit_of_measurement=CONCENTRATION_PARTS_PER_MILLION, - icon="mdi:pool", state_class=SensorStateClass.MEASUREMENT, ), SensorEntityDescription( @@ -68,7 +65,6 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = ( SensorEntityDescription( key="rssi", translation_key="rssi", - icon="mdi:wifi", native_unit_of_measurement=PERCENTAGE, state_class=SensorStateClass.MEASUREMENT, ), @@ -76,7 +72,6 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = ( key="salt", translation_key="salt", native_unit_of_measurement="mg/L", - icon="mdi:pool", state_class=SensorStateClass.MEASUREMENT, ), )