Add new data rate device class (#1577)

This commit is contained in:
epenet 2022-12-08 18:20:33 +01:00 committed by GitHub
parent 520ba8bc50
commit 2aa3db4d0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,7 @@ If specifying a device class, your number entity will need to also return the co
| carbon_dioxide | ppm | Concentration of carbon dioxide.
| carbon_monoxide | ppm | Concentration of carbon monoxide.
| current | A | 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
| energy | Wh, kWh, MWh | Energy. Represents _power_ over _time_. Not to be confused with `power`.

View File

@ -37,6 +37,7 @@ If specifying a device class, your sensor entity will need to also return the co
| carbon_dioxide | ppm | Concentration of carbon dioxide.
| carbon_monoxide | ppm | Concentration of carbon monoxide.
| current | A | 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`.
| distance | km, m, cm, mm, mi, yd, in | Generic distance