From b34709f0c86f8ef6df19b7e86220fa561bdc2e8e Mon Sep 17 00:00:00 2001 From: dt215git <86194065+dt215git@users.noreply.github.com> Date: Wed, 16 Oct 2024 08:10:27 +0100 Subject: [PATCH] api response means ROUNDS dict no longer needed --- .../source/kuringgai_nsw_gov_au.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/kuringgai_nsw_gov_au.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/kuringgai_nsw_gov_au.py index 54dcc4bb6..606e7664c 100644 --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/kuringgai_nsw_gov_au.py +++ b/custom_components/waste_collection_schedule/waste_collection_schedule/source/kuringgai_nsw_gov_au.py @@ -60,14 +60,6 @@ "Green Waste": "mdi:leaf", } -ROUNDS = { - "General Waste": "General Waste", - "Recycling": "Recycling", - "Green Waste": "Green Waste", -} - -# _LOGGER = logging.getLogger(__name__) - class Source: def __init__( @@ -133,10 +125,7 @@ def fetch(self): entries.append( Collection( date=date, - # t=waste_type, # api returns GeneralWaste, Recycling, GreenWaste - t=ROUNDS.get( - waste_type - ), # returns user-friendly General Waste, Recycling, Green Waste + t=waste_type, icon=ICON_MAP.get(waste_type), ) )