Add icon translations to Ecoforest (#111417)
This commit is contained in:
parent
a2af3e5ba1
commit
e366763eb2
2 changed files with 9 additions and 1 deletions
9
homeassistant/components/ecoforest/icons.json
Normal file
9
homeassistant/components/ecoforest/icons.json
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"entity": {
|
||||||
|
"sensor": {
|
||||||
|
"alarm": {
|
||||||
|
"default": "mdi:alert"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -90,7 +90,6 @@ SENSOR_TYPES: tuple[EcoforestSensorEntityDescription, ...] = (
|
||||||
translation_key="alarm",
|
translation_key="alarm",
|
||||||
device_class=SensorDeviceClass.ENUM,
|
device_class=SensorDeviceClass.ENUM,
|
||||||
options=ALARM_TYPE,
|
options=ALARM_TYPE,
|
||||||
icon="mdi:alert",
|
|
||||||
value_fn=lambda data: data.alarm.value if data.alarm else "none",
|
value_fn=lambda data: data.alarm.value if data.alarm else "none",
|
||||||
),
|
),
|
||||||
EcoforestSensorEntityDescription(
|
EcoforestSensorEntityDescription(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue