Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Fabian Affolter
d421745cfc
Mind the unit system (fixes #16819) 2018-09-24 19:52:13 +02:00

View file

@ -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