Add device class back to Purpleair (#96062)

pull/96081/head
Joost Lekkerkerker 2023-07-07 16:03:27 +02:00 committed by GitHub
parent 25b8593486
commit c4c4b6c81b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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
key="voc",
translation_key="voc_aqi",
device_class=SensorDeviceClass.AQI,
state_class=SensorStateClass.MEASUREMENT,
value_fn=lambda sensor: sensor.voc,
),