Skip to content

Commit

Permalink
Fix AirQuality value (#164)
Browse files Browse the repository at this point in the history
* Fix AirQuality value

* Bump version
  • Loading branch information
bieniu committed Apr 14, 2023
1 parent 36a70d0 commit f914431
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions accuweather/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,9 @@ def _parse_forecast_daily(
for item in day["AirAndPollen"]:
if item["Name"] == "AirQuality":
day[item["Type"]] = item
day[item["Type"]].pop("Name")
day[item["Type"]].pop("Type")
else:
day[item["Name"]] = item
day[item["Name"]].pop("Name")
day[item["Name"]] = item
day[item["Name"]]["Category"] = day[item["Name"]]["Category"].lower()
day[item["Name"]].pop("Name")
day.pop("AirAndPollen")

for temp in TEMPERATURES:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

PROJECT_DIR = Path(__file__).parent.resolve()
README_FILE = PROJECT_DIR / "README.md"
VERSION = "0.5.0"
VERSION = "0.5.1"

with open("requirements.txt", encoding="utf-8") as file:
requirements = file.read().splitlines()
Expand Down

0 comments on commit f914431

Please sign in to comment.