mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 03:37:07 +00:00
Add icon translations to Radiotherm (#112197)
This commit is contained in:
parent
053649faa5
commit
161d31d789
12
homeassistant/components/radiotherm/icons.json
Normal file
12
homeassistant/components/radiotherm/icons.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"entity": {
|
||||
"switch": {
|
||||
"hold": {
|
||||
"default": "mdi:timer-off",
|
||||
"state": {
|
||||
"on": "mdi:timer"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user