mirror of
https://github.com/sascha-hemi/hacs_waste_collection_schedule.git
synced 2026-03-21 03:04:09 +01:00
recyclecoach fix: no longer displays moved events
This commit is contained in:
@@ -174,6 +174,8 @@ class Source:
|
||||
for month in year["months"]:
|
||||
for event in month["events"]:
|
||||
for collection in event["collections"]:
|
||||
if collection["status"] == "is_none":
|
||||
continue
|
||||
ct = collection_types["collection-" + str(collection["id"])]
|
||||
c = Collection(
|
||||
datetime.strptime(event["date"], date_format).date(),
|
||||
@@ -181,5 +183,4 @@ class Source:
|
||||
ICON_MAP.get(ct["title"]),
|
||||
)
|
||||
entries.append(c)
|
||||
|
||||
return entries
|
||||
|
||||
Reference in New Issue
Block a user