Add NumberDeviceClass.DURATION (#96932)
This commit is contained in:
parent
db76bf3a9f
commit
fa0d68b1d7
3 changed files with 23 additions and 15 deletions
|
@ -73,12 +73,6 @@ class SensorDeviceClass(StrEnum):
|
|||
ISO8601 format: https://en.wikipedia.org/wiki/ISO_8601
|
||||
"""
|
||||
|
||||
DURATION = "duration"
|
||||
"""Fixed duration.
|
||||
|
||||
Unit of measurement: `d`, `h`, `min`, `s`, `ms`
|
||||
"""
|
||||
|
||||
ENUM = "enum"
|
||||
"""Enumeration.
|
||||
|
||||
|
@ -158,6 +152,12 @@ class SensorDeviceClass(StrEnum):
|
|||
- USCS / imperial: `in`, `ft`, `yd`, `mi`
|
||||
"""
|
||||
|
||||
DURATION = "duration"
|
||||
"""Fixed duration.
|
||||
|
||||
Unit of measurement: `d`, `h`, `min`, `s`, `ms`
|
||||
"""
|
||||
|
||||
ENERGY = "energy"
|
||||
"""Energy.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue