mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 10:47:10 +00:00
parent
b0c1c37cd5
commit
a148f3e2a9
@ -130,6 +130,9 @@ class OpenWeatherMapWeather(WeatherEntity):
|
|||||||
@property
|
@property
|
||||||
def wind_speed(self):
|
def wind_speed(self):
|
||||||
"""Return the wind speed."""
|
"""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)
|
return round(self.data.get_wind().get('speed') * 3.6, 2)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user