mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 16:26:43 +00:00
Enable unit conversion for DATA_RATE (#14902)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
parent
86ea3082f7
commit
bdef924426
@ -119,6 +119,19 @@ const OVERRIDE_NUMBER_UNITS = {
|
||||
|
||||
const OVERRIDE_SENSOR_UNITS = {
|
||||
current: ["A", "mA"],
|
||||
data_rate: [
|
||||
"bit/s",
|
||||
"kbit/s",
|
||||
"Mbit/s",
|
||||
"Gbit/s",
|
||||
"B/s",
|
||||
"kB/s",
|
||||
"MB/s",
|
||||
"GB/s",
|
||||
"KiB/s",
|
||||
"MiB/s",
|
||||
"GiB/s",
|
||||
],
|
||||
distance: ["cm", "ft", "in", "km", "m", "mi", "mm", "yd"],
|
||||
gas: ["CCF", "ft³", "m³"],
|
||||
precipitation: ["cm", "in", "mm"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user