mirror of
https://github.com/sascha-hemi/hacs_waste_collection_schedule.git
synced 2026-03-21 04:06:03 +01:00
@@ -78,7 +78,7 @@ class Source:
|
||||
bin_info = bin.text.split("-")
|
||||
try:
|
||||
# No date validation since year isn't included on webpage
|
||||
bin_date = bin_info[0].strip()
|
||||
bin_date = bin_info[0].strip().replace("Your usual collection day is different this week", "")
|
||||
bin_type = bin_info[1].strip()
|
||||
except Exception as ex:
|
||||
raise ValueError(f"Error parsing bin data: {ex}")
|
||||
|
||||
Reference in New Issue
Block a user