mirror of
https://github.com/sascha-hemi/hacs_waste_collection_schedule.git
synced 2026-03-21 06:05:57 +01:00
Changed file names and added a valid test uprn
This commit is contained in:
@@ -7,7 +7,7 @@ TITLE = "Region Gotland"
|
||||
DESCRIPTION = "Source for Region Gotland waste collection."
|
||||
URL = "https://gotland.se"
|
||||
TEST_CASES = {
|
||||
"Dummy": {"uprn": "0000000000"},
|
||||
"TestService": {"uprn": "16903059805"},
|
||||
}
|
||||
|
||||
ICON_MAP = {
|
||||
@@ -29,6 +29,9 @@ class Source:
|
||||
|
||||
entries = []
|
||||
for item in data["RhServices"]:
|
||||
if item["WasteType"] == "Slam":
|
||||
continue
|
||||
|
||||
next_pickup = item["NextWastePickup"]
|
||||
next_pickup_date = datetime.fromisoformat(next_pickup).date()
|
||||
waste_type = item["WasteType"]
|
||||
Reference in New Issue
Block a user