Add icon translations to Vilfo (#112347)
This commit is contained in:
parent
153b1947fa
commit
f1e564fb47
2 changed files with 12 additions and 2 deletions
12
homeassistant/components/vilfo/icons.json
Normal file
12
homeassistant/components/vilfo/icons.json
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"entity": {
|
||||||
|
"sensor": {
|
||||||
|
"load": {
|
||||||
|
"default": "mdi:memory"
|
||||||
|
},
|
||||||
|
"boot_time": {
|
||||||
|
"default": "mdi:timer-outline"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -41,13 +41,11 @@ SENSOR_TYPES: tuple[VilfoSensorEntityDescription, ...] = (
|
||||||
key=ATTR_LOAD,
|
key=ATTR_LOAD,
|
||||||
translation_key=ATTR_LOAD,
|
translation_key=ATTR_LOAD,
|
||||||
native_unit_of_measurement=PERCENTAGE,
|
native_unit_of_measurement=PERCENTAGE,
|
||||||
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,
|
||||||
translation_key=ATTR_BOOT_TIME,
|
translation_key=ATTR_BOOT_TIME,
|
||||||
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,
|
||||||
),
|
),
|
||||||
|
|
Loading…
Add table
Reference in a new issue