mirror of
https://github.com/home-assistant/core.git
synced 2025-08-16 11:01:39 +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 (ISO8601)
|
||||||
DATE = "date"
|
DATE = "date"
|
||||||
|
|
||||||
|
# fixed duration (TIME_DAYS, TIME_HOURS, TIME_MINUTES, TIME_SECONDS)
|
||||||
|
DURATION = "duration"
|
||||||
|
|
||||||
# energy (Wh, kWh, MWh)
|
# energy (Wh, kWh, MWh)
|
||||||
ENERGY = "energy"
|
ENERGY = "energy"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user