From b28c57600c58cfaf5aea4e7b91767af88d9dbf84 Mon Sep 17 00:00:00 2001 From: SukramJ Date: Fri, 30 Dec 2022 13:55:39 +0100 Subject: [PATCH] Add mA to SensorDeviceClass.CURRENT (#1593) --- docs/core/entity/number.md | 2 +- docs/core/entity/sensor.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/core/entity/number.md b/docs/core/entity/number.md index f3a41a04..4417f5aa 100644 --- a/docs/core/entity/number.md +++ b/docs/core/entity/number.md @@ -37,7 +37,7 @@ If specifying a device class, your number entity will need to also return the co | battery | % | Percentage of battery that is left | carbon_dioxide | ppm | Concentration of carbon dioxide. | carbon_monoxide | ppm | Concentration of carbon monoxide. -| current | A | Current +| current | A, mA | Current | data_rate | bit/s, kbit/s, Mbit/s, Gbit/s, B/s, kB/s, MB/s, GB/s, KiB/s, MiB/s, GiB/s | Data rate | data_size | bit, kbit, Mbit, Gbit, B, kB, MB, GB, TB, PB, EB, ZB, YB, KiB, MiB, GiB, TiB, PiB, EiB, ZiB, YiB | Data size | distance | km, m, cm, mm, mi, yd, in | Generic distance diff --git a/docs/core/entity/sensor.md b/docs/core/entity/sensor.md index e59783bb..ff3091e2 100644 --- a/docs/core/entity/sensor.md +++ b/docs/core/entity/sensor.md @@ -37,7 +37,7 @@ If specifying a device class, your sensor entity will need to also return the co | battery | % | Percentage of battery that is left | carbon_dioxide | ppm | Concentration of carbon dioxide. | carbon_monoxide | ppm | Concentration of carbon monoxide. -| current | A | Current +| current | A, mA | Current | data_rate | bit/s, kbit/s, Mbit/s, Gbit/s, B/s, kB/s, MB/s, GB/s, KiB/s, MiB/s, GiB/s | Data rate | data_size | bit, kbit, Mbit, Gbit, B, kB, MB, GB, TB, PB, EB, ZB, YB, KiB, MiB, GiB, TiB, PiB, EiB, ZiB, YiB | Data size | date | | Date. Requires `native_value` to be a Python `datetime.date` object, or `None`.