mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 02:37:08 +00:00
Add device class back to Purpleair (#96062)
This commit is contained in:
parent
25b8593486
commit
c4c4b6c81b
@ -168,6 +168,7 @@ SENSOR_DESCRIPTIONS = [
|
|||||||
# This sensor is an air quality index for VOCs. More info at https://github.com/home-assistant/core/pull/84896
|
# This sensor is an air quality index for VOCs. More info at https://github.com/home-assistant/core/pull/84896
|
||||||
key="voc",
|
key="voc",
|
||||||
translation_key="voc_aqi",
|
translation_key="voc_aqi",
|
||||||
|
device_class=SensorDeviceClass.AQI,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
value_fn=lambda sensor: sensor.voc,
|
value_fn=lambda sensor: sensor.voc,
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user