From 2f227677b61960d135d1c7b3ed8b57e0f9eb554f Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Fri, 19 Jan 2024 20:08:34 +0100 Subject: [PATCH] Add icon translations to awair (#108408) --- homeassistant/components/awair/icons.json | 9 +++++++++ homeassistant/components/awair/sensor.py | 2 -- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 homeassistant/components/awair/icons.json diff --git a/homeassistant/components/awair/icons.json b/homeassistant/components/awair/icons.json new file mode 100644 index 00000000000..895cac81869 --- /dev/null +++ b/homeassistant/components/awair/icons.json @@ -0,0 +1,9 @@ +{ + "entity": { + "sensor": { + "score": { + "default": "mdi:blur" + } + } + } +} diff --git a/homeassistant/components/awair/sensor.py b/homeassistant/components/awair/sensor.py index 698850d6a49..03243e51b7c 100644 --- a/homeassistant/components/awair/sensor.py +++ b/homeassistant/components/awair/sensor.py @@ -64,7 +64,6 @@ class AwairSensorEntityDescription(SensorEntityDescription, AwairRequiredKeysMix SENSOR_TYPE_SCORE = AwairSensorEntityDescription( key=API_SCORE, - icon="mdi:blur", native_unit_of_measurement=PERCENTAGE, translation_key="score", unique_id_tag="score", # matches legacy format @@ -96,7 +95,6 @@ SENSOR_TYPES: tuple[AwairSensorEntityDescription, ...] = ( ), AwairSensorEntityDescription( key=API_VOC, - icon="mdi:molecule", device_class=SensorDeviceClass.VOLATILE_ORGANIC_COMPOUNDS_PARTS, native_unit_of_measurement=CONCENTRATION_PARTS_PER_BILLION, unique_id_tag="VOC", # matches legacy format