Add duration device class to sensor platform (#70543)

This commit is contained in:
J. Nick Koston
2022-04-25 06:56:42 -10:00
committed by GitHub
parent 5224cf5968
commit 791138eb8b

View File

@@ -101,6 +101,9 @@ class SensorDeviceClass(StrEnum):
# date (ISO8601)
DATE = "date"
# fixed duration (TIME_DAYS, TIME_HOURS, TIME_MINUTES, TIME_SECONDS)
DURATION = "duration"
# energy (Wh, kWh, MWh)
ENERGY = "energy"