mirror of
https://github.com/home-assistant/core.git
synced 2025-08-15 18:41:44 +02:00
Add duration device class to sensor platform (#70543)
This commit is contained in:
@@ -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"
|
||||
|
||||
|
Reference in New Issue
Block a user