Add icon translations to Ecoforest (#111417)

pull/111427/head
Joost Lekkerkerker 2024-02-25 22:47:15 +01:00 committed by GitHub
parent a2af3e5ba1
commit e366763eb2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,9 @@
{
"entity": {
"sensor": {
"alarm": {
"default": "mdi:alert"
}
}
}
}

View File

@ -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(