Add icon translations to awair (#108408)

pull/108174/head
Joost Lekkerkerker 2024-01-19 20:08:34 +01:00 committed by GitHub
parent 300b4f161c
commit 2f227677b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View File

@ -0,0 +1,9 @@
{
"entity": {
"sensor": {
"score": {
"default": "mdi:blur"
}
}
}
}

View File

@ -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