Add icon translations to Harmony (#111714)

This commit is contained in:
Joost Lekkerkerker 2024-02-28 16:34:25 +01:00 committed by GitHub
parent 0ff55a2d24
commit 7d1d72cc45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 7 deletions

View File

@ -0,0 +1,16 @@
{
"entity": {
"select": {
"activities": {
"default": "mdi:remote-tv",
"state": {
"power_off": "mdi:remote-tv-off"
}
}
}
},
"services": {
"sync": "mdi:sync",
"change_channel": "mdi:remote-tv"
}
}

View File

@ -43,13 +43,6 @@ class HarmonyActivitySelect(HarmonyEntity, SelectEntity):
self._attr_device_info = self._data.device_info(DOMAIN) self._attr_device_info = self._data.device_info(DOMAIN)
self._attr_name = name self._attr_name = name
@property
def icon(self) -> str:
"""Return a representative icon."""
if not self.available or self.current_option == TRANSLATABLE_POWER_OFF:
return "mdi:remote-tv-off"
return "mdi:remote-tv"
@property @property
def options(self) -> list[str]: def options(self) -> list[str]:
"""Return a set of selectable options.""" """Return a set of selectable options."""