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."""