mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 09:17:53 +00:00
Add entity translations to Vilfo (#99019)
This commit is contained in:
parent
be126da72d
commit
b5ff0b4ec2
@ -39,14 +39,14 @@ class VilfoSensorEntityDescription(SensorEntityDescription, VilfoRequiredKeysMix
|
||||
SENSOR_TYPES: tuple[VilfoSensorEntityDescription, ...] = (
|
||||
VilfoSensorEntityDescription(
|
||||
key=ATTR_LOAD,
|
||||
name="Load",
|
||||
translation_key=ATTR_LOAD,
|
||||
native_unit_of_measurement=PERCENTAGE,
|
||||
icon="mdi:memory",
|
||||
api_key=ATTR_API_DATA_FIELD_LOAD,
|
||||
),
|
||||
VilfoSensorEntityDescription(
|
||||
key=ATTR_BOOT_TIME,
|
||||
name="Boot time",
|
||||
translation_key=ATTR_BOOT_TIME,
|
||||
icon="mdi:timer-outline",
|
||||
api_key=ATTR_API_DATA_FIELD_BOOT_TIME,
|
||||
device_class=SensorDeviceClass.TIMESTAMP,
|
||||
|
@ -16,5 +16,15 @@
|
||||
"abort": {
|
||||
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]"
|
||||
}
|
||||
},
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"load": {
|
||||
"name": "Load"
|
||||
},
|
||||
"boot_time": {
|
||||
"name": "Boot time"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user