Add icon translations to Elgato (#111423)

This commit is contained in:
Joost Lekkerkerker 2024-03-06 11:49:36 +01:00 committed by GitHub
parent 2c42517ac4
commit c8f340966e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 17 additions and 6 deletions

View File

@ -0,0 +1,15 @@
{
"entity": {
"switch": {
"bypass": {
"default": "mdi:battery-off-outline"
},
"energy_saving": {
"default": "mdi:leaf"
}
}
},
"services": {
"identify": "mdi:crosshairs-question"
}
}

View File

@ -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: (

View File

@ -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,