mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 01:06:35 +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 = {
|
const OVERRIDE_SENSOR_UNITS = {
|
||||||
current: ["A", "mA"],
|
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"],
|
distance: ["cm", "ft", "in", "km", "m", "mi", "mm", "yd"],
|
||||||
gas: ["CCF", "ft³", "m³"],
|
gas: ["CCF", "ft³", "m³"],
|
||||||
precipitation: ["cm", "in", "mm"],
|
precipitation: ["cm", "in", "mm"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user