Skip to content

Commit

Permalink
update release
Browse files Browse the repository at this point in the history
  • Loading branch information
Bram van Dartel committed Jun 26, 2023
1 parent f78500d commit ba01de2
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 6 deletions.
4 changes: 3 additions & 1 deletion custom_components/afvalwijzer/common/main_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ def _waste_type_rename(item_name):
if item_name == "kerstb":
item_name = "kerstboom"
# RD4
if item_name == "pruning":
if item_name == "pruning_waste":
item_name = "snoeiafval"
if item_name == "pruning_waste":
item_name = "takken"
if item_name == "residual_waste":
item_name = "restafval"
Expand Down
2 changes: 1 addition & 1 deletion custom_components/afvalwijzer/const/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API = "api"
NAME = "afvalwijzer"
VERSION = "2023.04.02"
VERSION = "2023.06.01"
ISSUE_URL = "https://github.com/xirixiz/homeassistant-afvalwijzer/issues"

SENSOR_COLLECTOR_TO_URL = {
Expand Down
2 changes: 1 addition & 1 deletion custom_components/afvalwijzer/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/xirixiz/homeassistant-afvalwijzer/issues",
"requirements": [],
"version": "2023.04.02"
"version": "2023.06.01"
}
23 changes: 20 additions & 3 deletions custom_components/afvalwijzer/tests/test_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@
# postal_code = "5146eg"
# street_number = "1"

# Afvalwijzer
provider = "mijnafvalwijzer"
postal_code = "3951en"
street_number = "1"

# Afvalstoffendienstkalender
# provider = "afvalstoffendienstkalender"
# postal_code = "4266NB"
Expand All @@ -57,9 +62,18 @@
# postal_code = "6665CN"
# street_number = "1"

provider = "prezero"
postal_code = "6822NG"
street_number = "1"
# provider = "prezero"
# postal_code = "6822NG"
# street_number = "1"

# provider = "mijnafvalwijzer"
# postal_code = "3951eb"
# street_number = "1"

# provider = "mijnafvalwijzer"
# postal_code = "3941RK"
# street_number = "50"
# suffix = "B"

# RD4
# provider = "rd4"
Expand Down Expand Up @@ -115,6 +129,9 @@
#########################################################################################################
print("\n")

print(f"Data collected from: {provider} with postcal code: {postal_code}")
print("\n")

print(collector.waste_data_with_today)
print(collector.waste_data_without_today)
print(collector.waste_data_custom)
Expand Down

0 comments on commit ba01de2

Please sign in to comment.