mirror of
https://github.com/sascha-hemi/hacs_waste_collection_schedule.git
synced 2026-03-21 02:04:22 +01:00
updates incorporating Norfolk County, ON
This commit is contained in:
@@ -3595,6 +3595,12 @@
|
||||
},
|
||||
"id": "ics_recollect"
|
||||
},
|
||||
{
|
||||
"title": "Norfolk County (ON)",
|
||||
"module": "recyclecoach_com",
|
||||
"default_params": {},
|
||||
"id": "recyclecoach_com"
|
||||
},
|
||||
{
|
||||
"title": "Orillia, Ontario",
|
||||
"module": "orillia_ca",
|
||||
|
||||
@@ -74,6 +74,11 @@ EXTRA_INFO = [
|
||||
"country": "ca",
|
||||
"default_params": {"city": "Kawartha Lakes", "state": "Ontario"},
|
||||
},
|
||||
{
|
||||
"title": "Norfolk County (ON)",
|
||||
"url": "https://www.norfolkcounty.ca/",
|
||||
"country": "ca",
|
||||
},
|
||||
]
|
||||
|
||||
TEST_CASES = {
|
||||
@@ -129,12 +134,23 @@ TEST_CASES = {
|
||||
"city": "Richmond Hill",
|
||||
"state": "Ontario",
|
||||
},
|
||||
"Norfolk County, Ontario, Canada (with district_id, project_id & zone_id)": {
|
||||
"district_id": "OLYMP",
|
||||
"project_id": 3107,
|
||||
"zone_id": "zone-z11266-z16205-z16208-z16218",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
class Source:
|
||||
def __init__(
|
||||
self, street, city, state, project_id=None, district_id=None, zone_id=None
|
||||
self,
|
||||
street=None,
|
||||
city=None,
|
||||
state=None,
|
||||
project_id=None,
|
||||
district_id=None,
|
||||
zone_id=None,
|
||||
): # argX correspond to the args dict in the source configuration
|
||||
self.street = self._format_key(street)
|
||||
self.city = self._format_key(city)
|
||||
|
||||
Reference in New Issue
Block a user