Add support for overriding sensor distance unit (#13831)

This commit is contained in:
Erik Montnemery 2022-09-28 09:11:34 +02:00 committed by GitHub
parent d1c2020ee4
commit 296d5f8ffe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,6 +111,7 @@ const OVERRIDE_NUMBER_UNITS = {
};
const OVERRIDE_SENSOR_UNITS = {
distance: ["cm", "ft", "in", "km", "m", "mi", "mm", "yd"],
pressure: ["hPa", "Pa", "kPa", "bar", "cbar", "mbar", "mmHg", "inHg", "psi"],
speed: ["ft/s", "in/d", "in/h", "km/h", "kn", "m/s", "mm/d", "mph"],
temperature: ["°C", "°F", "K"],