mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 02:37:08 +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
|
@property
|
||||||
def wind_speed(self):
|
def wind_speed(self):
|
||||||
"""Return the wind speed."""
|
"""Return the wind speed."""
|
||||||
return self.data.get_wind().get('speed')
|
return round(self.data.get_wind().get('speed') * 3.6, 2)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def wind_bearing(self):
|
def wind_bearing(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user