mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 08:47:57 +00:00
Add icon translations to Elgato (#111423)
This commit is contained in:
parent
2c42517ac4
commit
c8f340966e
15
homeassistant/components/elgato/icons.json
Normal file
15
homeassistant/components/elgato/icons.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"entity": {
|
||||
"switch": {
|
||||
"bypass": {
|
||||
"default": "mdi:battery-off-outline"
|
||||
},
|
||||
"energy_saving": {
|
||||
"default": "mdi:leaf"
|
||||
}
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
"identify": "mdi:crosshairs-question"
|
||||
}
|
||||
}
|
@ -32,7 +32,6 @@ SWITCHES = [
|
||||
ElgatoSwitchEntityDescription(
|
||||
key="bypass",
|
||||
translation_key="bypass",
|
||||
icon="mdi:battery-off-outline",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
has_fn=lambda x: x.battery is not None,
|
||||
is_on_fn=lambda x: x.settings.battery.bypass if x.settings.battery else None,
|
||||
@ -41,7 +40,6 @@ SWITCHES = [
|
||||
ElgatoSwitchEntityDescription(
|
||||
key="energy_saving",
|
||||
translation_key="energy_saving",
|
||||
icon="mdi:leaf",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
has_fn=lambda x: x.battery is not None,
|
||||
is_on_fn=lambda x: (
|
||||
|
@ -3,7 +3,6 @@
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'Frenck Energy saving',
|
||||
'icon': 'mdi:leaf',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'switch.frenck_energy_saving',
|
||||
@ -35,7 +34,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': None,
|
||||
'original_icon': 'mdi:leaf',
|
||||
'original_icon': None,
|
||||
'original_name': 'Energy saving',
|
||||
'platform': 'elgato',
|
||||
'previous_unique_id': None,
|
||||
@ -83,7 +82,6 @@
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'Frenck Studio mode',
|
||||
'icon': 'mdi:battery-off-outline',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'switch.frenck_studio_mode',
|
||||
@ -115,7 +113,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': None,
|
||||
'original_icon': 'mdi:battery-off-outline',
|
||||
'original_icon': None,
|
||||
'original_name': 'Studio mode',
|
||||
'platform': 'elgato',
|
||||
'previous_unique_id': None,
|
||||
|
Loading…
x
Reference in New Issue
Block a user