mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
Add icon translations to Harmony (#111714)
This commit is contained in:
parent
0ff55a2d24
commit
7d1d72cc45
16
homeassistant/components/harmony/icons.json
Normal file
16
homeassistant/components/harmony/icons.json
Normal 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"
|
||||
}
|
||||
}
|
@ -43,13 +43,6 @@ class HarmonyActivitySelect(HarmonyEntity, SelectEntity):
|
||||
self._attr_device_info = self._data.device_info(DOMAIN)
|
||||
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
|
||||
def options(self) -> list[str]:
|
||||
"""Return a set of selectable options."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user