From d421745cfc3d139a8f9c22a214ecf9aa5b7606ed Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 24 Sep 2018 19:52:13 +0200 Subject: [PATCH] Mind the unit system (fixes #16819) --- homeassistant/components/weather/openweathermap.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/weather/openweathermap.py b/homeassistant/components/weather/openweathermap.py index 87d2bc668..b70413b95 100644 --- a/homeassistant/components/weather/openweathermap.py +++ b/homeassistant/components/weather/openweathermap.py @@ -130,6 +130,9 @@ class OpenWeatherMapWeather(WeatherEntity): @property def wind_speed(self): """Return the wind speed.""" + if self.hass.config.units.name == 'imperial': + return round(self.data.get_wind().get('speed') * 2.24, 2) + return round(self.data.get_wind().get('speed') * 3.6, 2) @property