From 470d121f5ceb9fa232a88aaba0829e88dfd14770 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Wed, 28 Feb 2024 05:36:12 +0100 Subject: [PATCH] Add icon translations to Flume (#111543) --- homeassistant/components/flume/binary_sensor.py | 2 -- homeassistant/components/flume/icons.json | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 homeassistant/components/flume/icons.json diff --git a/homeassistant/components/flume/binary_sensor.py b/homeassistant/components/flume/binary_sensor.py index fd6fcc5f4b9..a31fecf305e 100644 --- a/homeassistant/components/flume/binary_sensor.py +++ b/homeassistant/components/flume/binary_sensor.py @@ -59,14 +59,12 @@ FLUME_BINARY_NOTIFICATION_SENSORS: tuple[FlumeBinarySensorEntityDescription, ... translation_key="leak", entity_category=EntityCategory.DIAGNOSTIC, event_rule=NOTIFICATION_LEAK_DETECTED, - icon="mdi:pipe-leak", ), FlumeBinarySensorEntityDescription( key="flow", translation_key="flow", entity_category=EntityCategory.DIAGNOSTIC, event_rule=NOTIFICATION_HIGH_FLOW, - icon="mdi:waves", ), FlumeBinarySensorEntityDescription( key="low_battery", diff --git a/homeassistant/components/flume/icons.json b/homeassistant/components/flume/icons.json new file mode 100644 index 00000000000..631c0645ed3 --- /dev/null +++ b/homeassistant/components/flume/icons.json @@ -0,0 +1,15 @@ +{ + "entity": { + "binary_sensor": { + "leak": { + "default": "mdi:pipe-leak" + }, + "flow": { + "default": "mdi:waves" + } + } + }, + "services": { + "list_notifications": "mdi:bell" + } +}