mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +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(
|
ElgatoButtonEntityDescription(
|
||||||
key="restart",
|
key="restart",
|
||||||
translation_key="restart",
|
|
||||||
device_class=ButtonDeviceClass.RESTART,
|
device_class=ButtonDeviceClass.RESTART,
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
press_fn=lambda client: client.restart(),
|
press_fn=lambda client: client.restart(),
|
||||||
|
@ -45,7 +45,6 @@ class ElgatoSensorEntityDescription(
|
|||||||
SENSORS = [
|
SENSORS = [
|
||||||
ElgatoSensorEntityDescription(
|
ElgatoSensorEntityDescription(
|
||||||
key="battery",
|
key="battery",
|
||||||
translation_key="battery",
|
|
||||||
device_class=SensorDeviceClass.BATTERY,
|
device_class=SensorDeviceClass.BATTERY,
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
native_unit_of_measurement=PERCENTAGE,
|
native_unit_of_measurement=PERCENTAGE,
|
||||||
|
@ -26,15 +26,9 @@
|
|||||||
"button": {
|
"button": {
|
||||||
"identify": {
|
"identify": {
|
||||||
"name": "Identify"
|
"name": "Identify"
|
||||||
},
|
|
||||||
"restart": {
|
|
||||||
"name": "[%key:component::button::entity_component::restart::name%]"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sensor": {
|
"sensor": {
|
||||||
"battery": {
|
|
||||||
"name": "[%key:component::sensor::entity_component::battery::name%]"
|
|
||||||
},
|
|
||||||
"charge_power": {
|
"charge_power": {
|
||||||
"name": "Charging power"
|
"name": "Charging power"
|
||||||
},
|
},
|
||||||
|
@ -111,7 +111,7 @@
|
|||||||
'original_name': 'Restart',
|
'original_name': 'Restart',
|
||||||
'platform': 'elgato',
|
'platform': 'elgato',
|
||||||
'supported_features': 0,
|
'supported_features': 0,
|
||||||
'translation_key': 'restart',
|
'translation_key': None,
|
||||||
'unique_id': 'GW24L1A02987_restart',
|
'unique_id': 'GW24L1A02987_restart',
|
||||||
'unit_of_measurement': None,
|
'unit_of_measurement': None,
|
||||||
})
|
})
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
'original_name': 'Battery',
|
'original_name': 'Battery',
|
||||||
'platform': 'elgato',
|
'platform': 'elgato',
|
||||||
'supported_features': 0,
|
'supported_features': 0,
|
||||||
'translation_key': 'battery',
|
'translation_key': None,
|
||||||
'unique_id': 'GW24L1A02987_battery',
|
'unique_id': 'GW24L1A02987_battery',
|
||||||
'unit_of_measurement': '%',
|
'unit_of_measurement': '%',
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user