Skip to content

Commit

Permalink
deprecate wind_strength
Browse files Browse the repository at this point in the history
  • Loading branch information
dgomes committed Jul 4, 2022
1 parent 0cc1848 commit 2e98c25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions example.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ async def main():

forecasts = await location.forecast(api)
print("Forecast for tomorrow {}".format(forecasts[0]))
print(forecasts[0].wind_strength)

sea_forecast = await location.sea_forecast(api)
print("Sea forecast for today {}".format(sea_forecast))
Expand Down
1 change: 1 addition & 0 deletions pyipma/forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def precipitation_probability(self):
@property
def wind_strength(self):
"""Wind Strength."""
LOGGER.warning("This method is deprecated returning None")
return self._data.get("ffVento")

@property
Expand Down

0 comments on commit 2e98c25

Please sign in to comment.