From 119e1fbc8bea85b1050b02d68df897404b7648c8 Mon Sep 17 00:00:00 2001 From: Keith Date: Sun, 26 Feb 2023 21:07:34 +1100 Subject: [PATCH] Corrected Recycling & Green Waste Corrected Recycling & Green Waste and added another test --- .../waste_collection_schedule/source/hume_vic_gov_au.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/hume_vic_gov_au.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/hume_vic_gov_au.py index 92893d253..662382923 100644 --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/hume_vic_gov_au.py +++ b/custom_components/waste_collection_schedule/waste_collection_schedule/source/hume_vic_gov_au.py @@ -13,6 +13,7 @@ "address": "280 SOMERTON ROAD ROXBURGH PARK, VIC 3064" }, # Tuesday "1/90 Vineyard": {"address": "1/90 Vineyard Road Sunbury, VIC 3429"}, # Wednesday + "9-19 McEwen": {"address": "9-19 MCEWEN DRIVE SUNBURY VIC 3429"}, # Wednesday "33 Toyon": {"address": "33 TOYON ROAD KALKALLO VIC 3064"}, # Friday } @@ -84,8 +85,8 @@ def fetch(self): fields_json = r.json()["infoPanels"]["info1"]["feature"]["fields"] date_rubbish = fields_json[9]["value"]["value"].split(" ")[1] - date_recycling = fields_json[9]["value"]["value"].split(" ")[1] - date_green_waste = fields_json[9]["value"]["value"].split(" ")[1] + date_recycling = fields_json[10]["value"]["value"].split(" ")[1] + date_green_waste = fields_json[11]["value"]["value"].split(" ")[1] # general rubbish (red lid) entries.append(