From 161d31d789645979a844b55eed5d4d5b1302b78b Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Tue, 5 Mar 2024 08:44:57 +0100 Subject: [PATCH] Add icon translations to Radiotherm (#112197) --- homeassistant/components/radiotherm/icons.json | 12 ++++++++++++ homeassistant/components/radiotherm/switch.py | 5 ----- 2 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 homeassistant/components/radiotherm/icons.json diff --git a/homeassistant/components/radiotherm/icons.json b/homeassistant/components/radiotherm/icons.json new file mode 100644 index 00000000000..be955c5dcf0 --- /dev/null +++ b/homeassistant/components/radiotherm/icons.json @@ -0,0 +1,12 @@ +{ + "entity": { + "switch": { + "hold": { + "default": "mdi:timer-off", + "state": { + "on": "mdi:timer" + } + } + } + } +} diff --git a/homeassistant/components/radiotherm/switch.py b/homeassistant/components/radiotherm/switch.py index 3b71baffec6..1f047a76201 100644 --- a/homeassistant/components/radiotherm/switch.py +++ b/homeassistant/components/radiotherm/switch.py @@ -35,11 +35,6 @@ class RadioThermHoldSwitch(RadioThermostatEntity, SwitchEntity): super().__init__(coordinator) self._attr_unique_id = f"{coordinator.init_data.mac}_hold" - @property - def icon(self) -> str: - """Return the icon for the switch.""" - return "mdi:timer-off" if self.is_on else "mdi:timer" - @callback def _process_data(self) -> None: """Update and validate the data from the thermostat."""