Fix windspeed convertion error in ukmetoffice weather provider

Fix windspeed convertion error from mph to m/s in ukmetoffice weather provider (#2189)
This commit is contained in:
Aurélien Veillard 2020-11-08 12:37:21 +01:00
parent 3220702034
commit 0d6f736c2c
2 changed files with 3 additions and 2 deletions

View File

@ -28,6 +28,7 @@ _This release is scheduled to be released on 2021-01-01._
- Rename Greek translation to correct ISO 639-1 alpha-2 code (gr > el). (#2155)
- Add a space after icons of sunrise and sunset (#2169)
- Fix calendar when no DTEND record found in event, startDate overlay when endDate set (#2177)
- Fix windspeed convertion error in ukmetoffice weather provider (#2189)
## [2.13.0] - 2020-10-01

View File

@ -208,10 +208,10 @@ WeatherProvider.register("ukmetoffice", {
},
/*
* Convert wind speed (from mph) if required
* Convert wind speed (from mph to m/s) if required
*/
convertWindSpeed(windInMph) {
return this.windUnits === "metric" ? windInMph * 2.23694 : windInMph;
return this.windUnits === "metric" ? windInMph / 2.23694 : windInMph;
},
/*