Add NumberDeviceClass.DURATION (#96932)

This commit is contained in:
Erik Montnemery 2023-07-20 11:10:03 +02:00 committed by GitHub
parent db76bf3a9f
commit fa0d68b1d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 15 deletions

View file

@ -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.