Add support for overriding sensor weight unit (#13897)

This commit is contained in:
Erik Montnemery 2022-09-28 12:15:23 +02:00 committed by GitHub
parent 5146fa1d9e
commit d3b97ae91c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,6 +116,7 @@ const OVERRIDE_SENSOR_UNITS = {
speed: ["ft/s", "in/d", "in/h", "km/h", "kn", "m/s", "mm/d", "mph"],
temperature: ["°C", "°F", "K"],
volume: ["fl. oz.", "ft³", "gal", "L", "mL", "m³"],
weight: ["g", "kg", "lb", "mg", "oz", "µg"],
};
const OVERRIDE_WEATHER_UNITS = {