mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 14:27:07 +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(
|
ElgatoSwitchEntityDescription(
|
||||||
key="bypass",
|
key="bypass",
|
||||||
translation_key="bypass",
|
translation_key="bypass",
|
||||||
icon="mdi:battery-off-outline",
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
has_fn=lambda x: x.battery is not None,
|
has_fn=lambda x: x.battery is not None,
|
||||||
is_on_fn=lambda x: x.settings.battery.bypass if x.settings.battery else None,
|
is_on_fn=lambda x: x.settings.battery.bypass if x.settings.battery else None,
|
||||||
@ -41,7 +40,6 @@ SWITCHES = [
|
|||||||
ElgatoSwitchEntityDescription(
|
ElgatoSwitchEntityDescription(
|
||||||
key="energy_saving",
|
key="energy_saving",
|
||||||
translation_key="energy_saving",
|
translation_key="energy_saving",
|
||||||
icon="mdi:leaf",
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
has_fn=lambda x: x.battery is not None,
|
has_fn=lambda x: x.battery is not None,
|
||||||
is_on_fn=lambda x: (
|
is_on_fn=lambda x: (
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
StateSnapshot({
|
StateSnapshot({
|
||||||
'attributes': ReadOnlyDict({
|
'attributes': ReadOnlyDict({
|
||||||
'friendly_name': 'Frenck Energy saving',
|
'friendly_name': 'Frenck Energy saving',
|
||||||
'icon': 'mdi:leaf',
|
|
||||||
}),
|
}),
|
||||||
'context': <ANY>,
|
'context': <ANY>,
|
||||||
'entity_id': 'switch.frenck_energy_saving',
|
'entity_id': 'switch.frenck_energy_saving',
|
||||||
@ -35,7 +34,7 @@
|
|||||||
'options': dict({
|
'options': dict({
|
||||||
}),
|
}),
|
||||||
'original_device_class': None,
|
'original_device_class': None,
|
||||||
'original_icon': 'mdi:leaf',
|
'original_icon': None,
|
||||||
'original_name': 'Energy saving',
|
'original_name': 'Energy saving',
|
||||||
'platform': 'elgato',
|
'platform': 'elgato',
|
||||||
'previous_unique_id': None,
|
'previous_unique_id': None,
|
||||||
@ -83,7 +82,6 @@
|
|||||||
StateSnapshot({
|
StateSnapshot({
|
||||||
'attributes': ReadOnlyDict({
|
'attributes': ReadOnlyDict({
|
||||||
'friendly_name': 'Frenck Studio mode',
|
'friendly_name': 'Frenck Studio mode',
|
||||||
'icon': 'mdi:battery-off-outline',
|
|
||||||
}),
|
}),
|
||||||
'context': <ANY>,
|
'context': <ANY>,
|
||||||
'entity_id': 'switch.frenck_studio_mode',
|
'entity_id': 'switch.frenck_studio_mode',
|
||||||
@ -115,7 +113,7 @@
|
|||||||
'options': dict({
|
'options': dict({
|
||||||
}),
|
}),
|
||||||
'original_device_class': None,
|
'original_device_class': None,
|
||||||
'original_icon': 'mdi:battery-off-outline',
|
'original_icon': None,
|
||||||
'original_name': 'Studio mode',
|
'original_name': 'Studio mode',
|
||||||
'platform': 'elgato',
|
'platform': 'elgato',
|
||||||
'previous_unique_id': None,
|
'previous_unique_id': None,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user