Skip to content

Commit

Permalink
Fix mapping of wind speed and wind gust
Browse files Browse the repository at this point in the history
  • Loading branch information
cloneofghosts authored Mar 10, 2024
1 parent da4ac37 commit dcb9ff3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions custom_components/pirateweather/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,17 +284,17 @@ def humidity(self):

@property
def native_wind_speed(self):
"""Return the wind speed."""
windGust = self._weather_coordinator.data.currently().d.get("windGust")
"""Return the wind gust speed."""
windspeed = self._weather_coordinator.data.currently().d.get("windSpeed")

return round(windGust, 2)
return round(windspeed, 2)

@property
def wind_gust_speed(self):
"""Return the wind gust speed."""
windspeed = self._weather_coordinator.data.currently().d.get("windSpeed")
"""Return the wind speed."""
windGust = self._weather_coordinator.data.currently().d.get("windGust")

return round(windspeed, 2)
return round(windGust, 2)

@property
def wind_bearing(self):
Expand Down

0 comments on commit dcb9ff3

Please sign in to comment.