mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Clean up device class based entity translations in Elgato (#95122)
* Clean up device class based entity translations in Elgato * Update snapshots
This commit is contained in:
parent
fe9366eee6
commit
a2f9caa482
@ -47,7 +47,6 @@ BUTTONS = [
|
||||
),
|
||||
ElgatoButtonEntityDescription(
|
||||
key="restart",
|
||||
translation_key="restart",
|
||||
device_class=ButtonDeviceClass.RESTART,
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
press_fn=lambda client: client.restart(),
|
||||
|
@ -45,7 +45,6 @@ class ElgatoSensorEntityDescription(
|
||||
SENSORS = [
|
||||
ElgatoSensorEntityDescription(
|
||||
key="battery",
|
||||
translation_key="battery",
|
||||
device_class=SensorDeviceClass.BATTERY,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
native_unit_of_measurement=PERCENTAGE,
|
||||
|
@ -26,15 +26,9 @@
|
||||
"button": {
|
||||
"identify": {
|
||||
"name": "Identify"
|
||||
},
|
||||
"restart": {
|
||||
"name": "[%key:component::button::entity_component::restart::name%]"
|
||||
}
|
||||
},
|
||||
"sensor": {
|
||||
"battery": {
|
||||
"name": "[%key:component::sensor::entity_component::battery::name%]"
|
||||
},
|
||||
"charge_power": {
|
||||
"name": "Charging power"
|
||||
},
|
||||
|
@ -111,7 +111,7 @@
|
||||
'original_name': 'Restart',
|
||||
'platform': 'elgato',
|
||||
'supported_features': 0,
|
||||
'translation_key': 'restart',
|
||||
'translation_key': None,
|
||||
'unique_id': 'GW24L1A02987_restart',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
|
@ -44,7 +44,7 @@
|
||||
'original_name': 'Battery',
|
||||
'platform': 'elgato',
|
||||
'supported_features': 0,
|
||||
'translation_key': 'battery',
|
||||
'translation_key': None,
|
||||
'unique_id': 'GW24L1A02987_battery',
|
||||
'unit_of_measurement': '%',
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user