From 5bf2223d73f160c9159376dba10678e2b74f38e9 Mon Sep 17 00:00:00 2001 From: dt215git <86194065+dt215git@users.noreply.github.com> Date: Fri, 11 Oct 2024 20:06:11 +0100 Subject: [PATCH] def update --- .../waste_collection_schedule/source/sunderland_gov_uk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/sunderland_gov_uk.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/sunderland_gov_uk.py index 4cc7424b9..72c3e616c 100644 --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/sunderland_gov_uk.py +++ b/custom_components/waste_collection_schedule/waste_collection_schedule/source/sunderland_gov_uk.py @@ -28,7 +28,7 @@ def get_viewstate(self, content: str) -> dict: tags = {} soup = BeautifulSoup(content, "html.parser") hidden_tags = soup.findAll("input", type="hidden") - for _, tag in enumerate(hidden_tags): + for tag in hidden_tags: tags[tag.get("name")] = tag.get("value") return tags