From 74029c8fc6b6152def0966324842716809708eb7 Mon Sep 17 00:00:00 2001 From: 5ila5 <5ila5@users.noreply.github.com> Date: Thu, 12 Sep 2024 14:03:42 +0200 Subject: [PATCH] Impactapps_au fix Blue Mountains + fix issue not being raised --- .../source/impactapps_com_au.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/impactapps_com_au.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/impactapps_com_au.py index f79cf33d..f43e1394 100644 --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/impactapps_com_au.py +++ b/custom_components/waste_collection_schedule/waste_collection_schedule/source/impactapps_com_au.py @@ -5,7 +5,6 @@ import requests from waste_collection_schedule import Collection # type: ignore[attr-defined] from waste_collection_schedule.exceptions import ( SourceArgumentExceptionMultiple, - SourceArgumentNotFound, SourceArgumentNotFoundWithSuggestions, ) @@ -37,6 +36,12 @@ TEST_CASES = { "street_name": "Beach Street", "street_number": "3", }, + "Blue Mountains": { + "service": "Blue Mountains City Council", + "suburb": "Katoomba", + "street_name": "Katoomba Street", + "street_number": "110", + }, } HEADERS = {"user-agent": "Mozilla/5.0"} @@ -65,7 +70,7 @@ SERVICE_MAP = [ }, { "name": "Blue Mountains City Council", - "url": "https://bmcc-waste.waste-info.com.au", + "url": "https://bmcc.waste-info.com.au", "website": "https://www.bmcc.nsw.gov.au", }, { @@ -270,7 +275,7 @@ class LocationFinder: None, ) if property_id is None: - SourceArgumentNotFoundWithSuggestions( + raise SourceArgumentNotFoundWithSuggestions( "street_number", street_number, [