From a148f3e2a972132d5c67c545ffa263962e68e747 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 1 Oct 2018 20:38:41 +0200 Subject: [PATCH] Mind the unit system (fixes #16819) (#16823) --- 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 87d2bc6683f..b70413b9565 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