Add icon translations to Radiotherm (#112197)

This commit is contained in:
Joost Lekkerkerker 2024-03-05 08:44:57 +01:00 committed by GitHub
parent 053649faa5
commit 161d31d789
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 5 deletions

View File

@ -0,0 +1,12 @@
{
"entity": {
"switch": {
"hold": {
"default": "mdi:timer-off",
"state": {
"on": "mdi:timer"
}
}
}
}
}

View File

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