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(