mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Add icon translations to PurpleAir (#112192)
This commit is contained in:
parent
a2b9f59b8c
commit
7eb61b748e
24
homeassistant/components/purpleair/icons.json
Normal file
24
homeassistant/components/purpleair/icons.json
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user