mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 00:37:13 +00:00
Add duration device class to sensor platform (#70543)
This commit is contained in:
parent
5224cf5968
commit
791138eb8b
@ -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"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user