From f1e564fb47346a4b4ab36fe2e570aa92f2498993 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Tue, 5 Mar 2024 21:45:19 +0100 Subject: [PATCH] Add icon translations to Vilfo (#112347) --- homeassistant/components/vilfo/icons.json | 12 ++++++++++++ homeassistant/components/vilfo/sensor.py | 2 -- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 homeassistant/components/vilfo/icons.json diff --git a/homeassistant/components/vilfo/icons.json b/homeassistant/components/vilfo/icons.json new file mode 100644 index 00000000000..0b2e2a45a16 --- /dev/null +++ b/homeassistant/components/vilfo/icons.json @@ -0,0 +1,12 @@ +{ + "entity": { + "sensor": { + "load": { + "default": "mdi:memory" + }, + "boot_time": { + "default": "mdi:timer-outline" + } + } + } +} diff --git a/homeassistant/components/vilfo/sensor.py b/homeassistant/components/vilfo/sensor.py index c72edf1b7db..5f62b62a976 100644 --- a/homeassistant/components/vilfo/sensor.py +++ b/homeassistant/components/vilfo/sensor.py @@ -41,13 +41,11 @@ SENSOR_TYPES: tuple[VilfoSensorEntityDescription, ...] = ( key=ATTR_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, translation_key=ATTR_BOOT_TIME, - icon="mdi:timer-outline", api_key=ATTR_API_DATA_FIELD_BOOT_TIME, device_class=SensorDeviceClass.TIMESTAMP, ),