mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
* Convert wind speed to km/h (fixes #15710) * Round speed
This commit is contained in:
parent
5f214ffa98
commit
a4f9602405
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user