From a4f9602405773fc543c803dc5ca37302a6d39d18 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 31 Jul 2018 19:11:29 +0200 Subject: [PATCH] Convert wind speed to km/h (fixes #15710) (#15740) * Convert wind speed to km/h (fixes #15710) * Round speed --- homeassistant/components/weather/openweathermap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/weather/openweathermap.py b/homeassistant/components/weather/openweathermap.py index 334948b67fb..00d9bc47f1b 100644 --- a/homeassistant/components/weather/openweathermap.py +++ b/homeassistant/components/weather/openweathermap.py @@ -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):