Fix AirVisual Pro sensors with incorrect units for their device classes (#84800)

This commit is contained in:
Aaron Bach
2022-12-29 20:54:45 -05:00
committed by Paulus Schoutsen
parent f0514008fa
commit bd86111dd8
@@ -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,
),
)