Fix AirVisual Pro sensors with incorrect units for their device classes (#84800)
This commit is contained in:
parent
d8cbff65f1
commit
f51cf87361
1 changed files with 1 additions and 2 deletions
|
@ -39,7 +39,6 @@ SENSOR_DESCRIPTIONS = (
|
||||||
key=SENSOR_KIND_AQI,
|
key=SENSOR_KIND_AQI,
|
||||||
name="Air quality index",
|
name="Air quality index",
|
||||||
device_class=SensorDeviceClass.AQI,
|
device_class=SensorDeviceClass.AQI,
|
||||||
native_unit_of_measurement="AQI",
|
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
|
@ -94,7 +93,7 @@ SENSOR_DESCRIPTIONS = (
|
||||||
key=SENSOR_KIND_VOC,
|
key=SENSOR_KIND_VOC,
|
||||||
name="VOC",
|
name="VOC",
|
||||||
device_class=SensorDeviceClass.VOLATILE_ORGANIC_COMPOUNDS,
|
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,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue