Convert wind speed to km/h (fixes #15710) (#15740)

* Convert wind speed to km/h (fixes #15710)

* Round speed
pull/15767/head
Fabian Affolter 2018-07-31 19:11:29 +02:00 committed by GitHub
parent 5f214ffa98
commit a4f9602405
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ class OpenWeatherMapWeather(WeatherEntity):
@property
def wind_speed(self):
"""Return the wind speed."""
return self.data.get_wind().get('speed')
return round(self.data.get_wind().get('speed') * 3.6, 2)
@property
def wind_bearing(self):