From 818022073d9d3cdec503c18de7ebe3b2671b436f Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Wed, 28 Feb 2024 16:32:52 +0100 Subject: [PATCH] Add icon translations to Hive (#111717) --- homeassistant/components/hive/alarm_control_panel.py | 2 -- homeassistant/components/hive/icons.json | 7 +++++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 homeassistant/components/hive/icons.json diff --git a/homeassistant/components/hive/alarm_control_panel.py b/homeassistant/components/hive/alarm_control_panel.py index 0b10130a88f..46cc37751a0 100644 --- a/homeassistant/components/hive/alarm_control_panel.py +++ b/homeassistant/components/hive/alarm_control_panel.py @@ -20,7 +20,6 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback from . import HiveEntity from .const import DOMAIN -ICON = "mdi:security" PARALLEL_UPDATES = 0 SCAN_INTERVAL = timedelta(seconds=15) HIVETOHA = { @@ -46,7 +45,6 @@ async def async_setup_entry( class HiveAlarmControlPanelEntity(HiveEntity, AlarmControlPanelEntity): """Representation of a Hive alarm.""" - _attr_icon = ICON _attr_supported_features = ( AlarmControlPanelEntityFeature.ARM_NIGHT | AlarmControlPanelEntityFeature.ARM_AWAY diff --git a/homeassistant/components/hive/icons.json b/homeassistant/components/hive/icons.json new file mode 100644 index 00000000000..671426f6253 --- /dev/null +++ b/homeassistant/components/hive/icons.json @@ -0,0 +1,7 @@ +{ + "services": { + "boost_heating_on": "mdi:radiator", + "boost_heating_off": "mdi:radiator-off", + "boost_hot_water": "mdi:water-boiler" + } +}