Merge pull request #13028 from home-assistant/add_wind_speed_units

Support knots and ft/s in weather wind speed
This commit is contained in:
Erik Montnemery 2022-06-29 16:34:53 +02:00 committed by GitHub
commit 389f50b29a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,7 +115,7 @@ const OVERRIDE_WEATHER_UNITS = {
pressure: ["hPa", "mbar", "mmHg", "inHg"], pressure: ["hPa", "mbar", "mmHg", "inHg"],
temperature: ["°C", "°F"], temperature: ["°C", "°F"],
visibility: ["km", "mi"], visibility: ["km", "mi"],
wind_speed: ["km/h", "mph", "m/s"], wind_speed: ["ft/s", "km/h", "kn", "mph", "m/s"],
}; };
const SWITCH_AS_DOMAINS = ["cover", "fan", "light", "lock", "siren"]; const SWITCH_AS_DOMAINS = ["cover", "fan", "light", "lock", "siren"];