mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +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, ...] = (
|
SENSOR_TYPES: tuple[VilfoSensorEntityDescription, ...] = (
|
||||||
VilfoSensorEntityDescription(
|
VilfoSensorEntityDescription(
|
||||||
key=ATTR_LOAD,
|
key=ATTR_LOAD,
|
||||||
name="Load",
|
translation_key=ATTR_LOAD,
|
||||||
native_unit_of_measurement=PERCENTAGE,
|
native_unit_of_measurement=PERCENTAGE,
|
||||||
icon="mdi:memory",
|
icon="mdi:memory",
|
||||||
api_key=ATTR_API_DATA_FIELD_LOAD,
|
api_key=ATTR_API_DATA_FIELD_LOAD,
|
||||||
),
|
),
|
||||||
VilfoSensorEntityDescription(
|
VilfoSensorEntityDescription(
|
||||||
key=ATTR_BOOT_TIME,
|
key=ATTR_BOOT_TIME,
|
||||||
name="Boot time",
|
translation_key=ATTR_BOOT_TIME,
|
||||||
icon="mdi:timer-outline",
|
icon="mdi:timer-outline",
|
||||||
api_key=ATTR_API_DATA_FIELD_BOOT_TIME,
|
api_key=ATTR_API_DATA_FIELD_BOOT_TIME,
|
||||||
device_class=SensorDeviceClass.TIMESTAMP,
|
device_class=SensorDeviceClass.TIMESTAMP,
|
||||||
|
@ -16,5 +16,15 @@
|
|||||||
"abort": {
|
"abort": {
|
||||||
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]"
|
"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