Add icon translations to PurpleAir (#112192)

This commit is contained in:
Joost Lekkerkerker 2024-03-04 15:45:36 +01:00 committed by GitHub
parent a2b9f59b8c
commit 7eb61b748e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 24 additions and 6 deletions

View File

@ -0,0 +1,24 @@
{
"entity": {
"sensor": {
"pm0_3_count_concentration": {
"default": "mdi:blur"
},
"pm0_5_count_concentration": {
"default": "mdi:blur"
},
"pm1_0_count_concentration": {
"default": "mdi:blur"
},
"pm10_0_count_concentration": {
"default": "mdi:blur"
},
"pm5_0_count_concentration": {
"default": "mdi:blur"
},
"pm2_5_count_concentration": {
"default": "mdi:blur"
}
}
}
}

View File

@ -52,7 +52,6 @@ SENSOR_DESCRIPTIONS = [
key="pm0.3_count_concentration",
translation_key="pm0_3_count_concentration",
entity_registry_enabled_default=False,
icon="mdi:blur",
native_unit_of_measurement=CONCENTRATION_PARTICLES_PER_100_MILLILITERS,
state_class=SensorStateClass.MEASUREMENT,
value_fn=lambda sensor: sensor.pm0_3_um_count,
@ -61,7 +60,6 @@ SENSOR_DESCRIPTIONS = [
key="pm0.5_count_concentration",
translation_key="pm0_5_count_concentration",
entity_registry_enabled_default=False,
icon="mdi:blur",
native_unit_of_measurement=CONCENTRATION_PARTICLES_PER_100_MILLILITERS,
state_class=SensorStateClass.MEASUREMENT,
value_fn=lambda sensor: sensor.pm0_5_um_count,
@ -70,7 +68,6 @@ SENSOR_DESCRIPTIONS = [
key="pm1.0_count_concentration",
translation_key="pm1_0_count_concentration",
entity_registry_enabled_default=False,
icon="mdi:blur",
native_unit_of_measurement=CONCENTRATION_PARTICLES_PER_100_MILLILITERS,
state_class=SensorStateClass.MEASUREMENT,
value_fn=lambda sensor: sensor.pm1_0_um_count,
@ -86,7 +83,6 @@ SENSOR_DESCRIPTIONS = [
key="pm10.0_count_concentration",
translation_key="pm10_0_count_concentration",
entity_registry_enabled_default=False,
icon="mdi:blur",
native_unit_of_measurement=CONCENTRATION_PARTICLES_PER_100_MILLILITERS,
state_class=SensorStateClass.MEASUREMENT,
value_fn=lambda sensor: sensor.pm10_0_um_count,
@ -102,7 +98,6 @@ SENSOR_DESCRIPTIONS = [
key="pm2.5_count_concentration",
translation_key="pm2_5_count_concentration",
entity_registry_enabled_default=False,
icon="mdi:blur",
native_unit_of_measurement=CONCENTRATION_PARTICLES_PER_100_MILLILITERS,
state_class=SensorStateClass.MEASUREMENT,
value_fn=lambda sensor: sensor.pm2_5_um_count,
@ -118,7 +113,6 @@ SENSOR_DESCRIPTIONS = [
key="pm5.0_count_concentration",
translation_key="pm5_0_count_concentration",
entity_registry_enabled_default=False,
icon="mdi:blur",
native_unit_of_measurement=CONCENTRATION_PARTICLES_PER_100_MILLILITERS,
state_class=SensorStateClass.MEASUREMENT,
value_fn=lambda sensor: sensor.pm5_0_um_count,