From 0cd836157e0143948dfbb13816febb4ecf26908e Mon Sep 17 00:00:00 2001 From: Jushav <38291252+Jushav@users.noreply.github.com> Date: Mon, 18 Nov 2024 20:05:28 +0100 Subject: [PATCH] Fix renamed containers It seems that the container names were changed and the test cases fail. This commit fixes this change. All tests run successfully afterwards. --- .../source/abfallwirtschaft_pforzheim_de.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/abfallwirtschaft_pforzheim_de.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/abfallwirtschaft_pforzheim_de.py index 82074552a..d3d66adeb 100644 --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/abfallwirtschaft_pforzheim_de.py +++ b/custom_components/waste_collection_schedule/waste_collection_schedule/source/abfallwirtschaft_pforzheim_de.py @@ -100,11 +100,13 @@ def get_data(self, year): r.raise_for_status() args["SubmitAction"] = "forward" - args["ContainerGewaehltRM"] = "on" - args["ContainerGewaehltBM"] = "on" - args["ContainerGewaehltLVP"] = "on" - args["ContainerGewaehltPA"] = "on" - args["ContainerGewaehltPrMuell"] = "on" + args["ContainerGewaehlt_1"] = "on" + args["ContainerGewaehlt_2"] = "on" + args["ContainerGewaehlt_3"] = "on" + args["ContainerGewaehlt_4"] = "on" + args["ContainerGewaehlt_5"] = "on" + args["ContainerGewaehlt_6"] = "on" + args["ContainerGewaehlt_7"] = "on" r = session.post( API_URL, data=args,