From 48c434da867f8e9e06c75175f53758b82071b05b Mon Sep 17 00:00:00 2001 From: Jan Rieger <jrieger@users.noreply.github.com> Date: Sun, 21 Jan 2024 13:34:26 +0100 Subject: [PATCH] Add icon translations to DWD Weather Warnings (#108501) --- .../components/dwd_weather_warnings/icons.json | 12 ++++++++++++ .../components/dwd_weather_warnings/sensor.py | 2 -- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 homeassistant/components/dwd_weather_warnings/icons.json diff --git a/homeassistant/components/dwd_weather_warnings/icons.json b/homeassistant/components/dwd_weather_warnings/icons.json new file mode 100644 index 00000000000..abee79acf21 --- /dev/null +++ b/homeassistant/components/dwd_weather_warnings/icons.json @@ -0,0 +1,12 @@ +{ + "entity": { + "sensor": { + "current_warning_level": { + "default": "mdi:close-octagon-outline" + }, + "advance_warning_level": { + "default": "mdi:close-octagon-outline" + } + } + } +} diff --git a/homeassistant/components/dwd_weather_warnings/sensor.py b/homeassistant/components/dwd_weather_warnings/sensor.py index e88fb3c408b..d3e3b4a3772 100644 --- a/homeassistant/components/dwd_weather_warnings/sensor.py +++ b/homeassistant/components/dwd_weather_warnings/sensor.py @@ -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", ), ) -- GitLab