mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
Fix AirVisual Pro sensors with incorrect units for their device classes (#84800)
This commit is contained in:
parent
d8cbff65f1
commit
f51cf87361
@ -39,7 +39,6 @@ SENSOR_DESCRIPTIONS = (
|
||||
key=SENSOR_KIND_AQI,
|
||||
name="Air quality index",
|
||||
device_class=SensorDeviceClass.AQI,
|
||||
native_unit_of_measurement="AQI",
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
),
|
||||
SensorEntityDescription(
|
||||
@ -94,7 +93,7 @@ SENSOR_DESCRIPTIONS = (
|
||||
key=SENSOR_KIND_VOC,
|
||||
name="VOC",
|
||||
device_class=SensorDeviceClass.VOLATILE_ORGANIC_COMPOUNDS,
|
||||
native_unit_of_measurement=CONCENTRATION_PARTS_PER_MILLION,
|
||||
native_unit_of_measurement=CONCENTRATION_MICROGRAMS_PER_CUBIC_METER,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
),
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user