mirror of
https://github.com/sascha-hemi/hacs_waste_collection_schedule.git
synced 2026-03-21 04:06:03 +01:00
calgray_ca add logger message to move to recollect ics source
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import json
|
import json
|
||||||
|
import logging
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
@@ -29,6 +30,8 @@ WEEKDAYS = [
|
|||||||
"Sunday",
|
"Sunday",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class Source:
|
class Source:
|
||||||
def __init__(self, street_address):
|
def __init__(self, street_address):
|
||||||
@@ -57,6 +60,9 @@ class Source:
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def fetch(self):
|
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
|
# lookup the schedule key for the address
|
||||||
schedule_download = requests.get(
|
schedule_download = requests.get(
|
||||||
SCHEDULE_LOOKUP_URL,
|
SCHEDULE_LOOKUP_URL,
|
||||||
|
|||||||
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
Support for schedules provided by [City of Calgary](https://www.calgary.ca/waste/residential/garbage-schedule.html).
|
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
|
## Configuration via configuration.yaml
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user