calgray_ca add logger message to move to recollect ics source

This commit is contained in:
5ila5
2024-01-12 12:09:13 +01:00
committed by 5ila5
parent d345034683
commit ad96ca2412
2 changed files with 10 additions and 0 deletions

View File

@@ -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,

View File

@@ -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
<https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/recollect.md>
## Configuration via configuration.yaml
```yaml