From e366763eb25671397da8ee8009dcedcc076bf6ff Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Sun, 25 Feb 2024 22:47:15 +0100 Subject: [PATCH] Add icon translations to Ecoforest (#111417) --- homeassistant/components/ecoforest/icons.json | 9 +++++++++ homeassistant/components/ecoforest/sensor.py | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 homeassistant/components/ecoforest/icons.json diff --git a/homeassistant/components/ecoforest/icons.json b/homeassistant/components/ecoforest/icons.json new file mode 100644 index 00000000000..4cd93399184 --- /dev/null +++ b/homeassistant/components/ecoforest/icons.json @@ -0,0 +1,9 @@ +{ + "entity": { + "sensor": { + "alarm": { + "default": "mdi:alert" + } + } + } +} diff --git a/homeassistant/components/ecoforest/sensor.py b/homeassistant/components/ecoforest/sensor.py index 6f903bee2ba..90904d274ac 100644 --- a/homeassistant/components/ecoforest/sensor.py +++ b/homeassistant/components/ecoforest/sensor.py @@ -90,7 +90,6 @@ SENSOR_TYPES: tuple[EcoforestSensorEntityDescription, ...] = ( translation_key="alarm", device_class=SensorDeviceClass.ENUM, options=ALARM_TYPE, - icon="mdi:alert", value_fn=lambda data: data.alarm.value if data.alarm else "none", ), EcoforestSensorEntityDescription(