From aa3befd3025c9cc9d240f6bc47b3c7926bee0929 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 27 Sep 2022 15:41:22 +0100 Subject: [PATCH] Add generic distance device_class (#1465) --- docs/core/entity/sensor.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/core/entity/sensor.md b/docs/core/entity/sensor.md index 493ade17..6dafab05 100644 --- a/docs/core/entity/sensor.md +++ b/docs/core/entity/sensor.md @@ -36,6 +36,7 @@ If specifying a device class, your sensor entity will need to also return the co | carbon_monoxide | ppm | Concentration of carbon monoxide. | current | A | Current | date | | Date. Requires `native_value` to be a Python `datetime.date` object, or `None`. +| distance | km, m, cm, mm, mi, yd, in | Generic distance | duration | d, h, min, s | Time period. Should not update only due to time passing. The device or service needs to give a new data point to update. | energy | Wh, kWh, MWh | Energy, statistics will be stored in kWh. Represents _power_ over _time_. Not to be confused with `power`. | frequency | Hz, kHz, MHz, GHz | Frequency