Add icon translations to DWD Weather Warnings (#108501)

This commit is contained in:
Jan Rieger
2024-01-21 13:34:26 +01:00
committed by GitHub
parent 6a197e93aa
commit 48c434da86
2 changed files with 12 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
{
"entity": {
"sensor": {
"current_warning_level": {
"default": "mdi:close-octagon-outline"
},
"advance_warning_level": {
"default": "mdi:close-octagon-outline"
}
}
}
}

View File

@@ -44,12 +44,10 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
SensorEntityDescription(
key=CURRENT_WARNING_SENSOR,
translation_key=CURRENT_WARNING_SENSOR,
icon="mdi:close-octagon-outline",
),
SensorEntityDescription(
key=ADVANCE_WARNING_SENSOR,
translation_key=ADVANCE_WARNING_SENSOR,
icon="mdi:close-octagon-outline",
),
)