1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-04 20:32:21 +01:00

Update sensor device classes from HA (#1825)

This commit is contained in:
Otto Winter
2021-05-24 21:45:51 +02:00
committed by GitHub
parent a33bb32874
commit e3c27a483c
2 changed files with 7 additions and 1 deletions

View File

@@ -746,6 +746,8 @@ DEVICE_CLASS_EMPTY = ""
DEVICE_CLASS_BATTERY = "battery"
DEVICE_CLASS_POWER = "power"
# device classes of sensor component
DEVICE_CLASS_CARBON_MONOXIDE = "carbon_monoxide"
DEVICE_CLASS_CARBON_DIOXIDE = "carbon_dioxide"
DEVICE_CLASS_CURRENT = "current"
DEVICE_CLASS_ENERGY = "energy"
DEVICE_CLASS_HUMIDITY = "humidity"