diff --git a/custom_components/afvalwijzer/common/main_functions.py b/custom_components/afvalwijzer/common/main_functions.py index e05b65f..9fba476 100644 --- a/custom_components/afvalwijzer/common/main_functions.py +++ b/custom_components/afvalwijzer/common/main_functions.py @@ -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" diff --git a/custom_components/afvalwijzer/const/const.py b/custom_components/afvalwijzer/const/const.py index 04eba65..d3dfa85 100755 --- a/custom_components/afvalwijzer/const/const.py +++ b/custom_components/afvalwijzer/const/const.py @@ -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 = { diff --git a/custom_components/afvalwijzer/manifest.json b/custom_components/afvalwijzer/manifest.json index 33342d1..b7d9924 100644 --- a/custom_components/afvalwijzer/manifest.json +++ b/custom_components/afvalwijzer/manifest.json @@ -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" } \ No newline at end of file diff --git a/custom_components/afvalwijzer/tests/test_module.py b/custom_components/afvalwijzer/tests/test_module.py index 67b9cea..afe83fc 100644 --- a/custom_components/afvalwijzer/tests/test_module.py +++ b/custom_components/afvalwijzer/tests/test_module.py @@ -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" @@ -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" @@ -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)