mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
parent
b0c1c37cd5
commit
a148f3e2a9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user