diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/calgary_ca.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/calgary_ca.py index ee6729ea..6da0a925 100644 --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/calgary_ca.py +++ b/custom_components/waste_collection_schedule/waste_collection_schedule/source/calgary_ca.py @@ -1,4 +1,5 @@ import json +import logging from datetime import datetime, timedelta import requests @@ -29,6 +30,8 @@ WEEKDAYS = [ "Sunday", ] +LOGGER = logging.getLogger(__name__) + class Source: def __init__(self, street_address): @@ -57,6 +60,9 @@ class Source: return False def fetch(self): + LOGGER.warning( + "looks like calgary moved to recollect and not all collections are visible using this source anymore. https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/recollect.md" + ) # lookup the schedule key for the address schedule_download = requests.get( SCHEDULE_LOOKUP_URL, diff --git a/doc/source/calgary_ca.md b/doc/source/calgary_ca.md index f258fb39..97f129d6 100644 --- a/doc/source/calgary_ca.md +++ b/doc/source/calgary_ca.md @@ -2,6 +2,10 @@ Support for schedules provided by [City of Calgary](https://www.calgary.ca/waste/residential/garbage-schedule.html). +# Deprecated not all collections are being returned use recollect instead + + + ## Configuration via configuration.yaml ```yaml