Skip to content

Commit

Permalink
remove shapley from manifest.json + reformat montral_ca
Browse files Browse the repository at this point in the history
  • Loading branch information
5ila5 committed Jan 26, 2024
1 parent bf11cee commit 252fb47
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion custom_components/waste_collection_schedule/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"documentation": "https://github.com/mampfes/hacs_waste_collection_schedule#readme",
"integration_type": "hub",
"iot_class": "cloud_polling",
"requirements": ["icalendar", "recurring_ical_events", "icalevents", "beautifulsoup4", "lxml", "shapely"],
"requirements": ["icalendar", "recurring_ical_events", "icalevents", "beautifulsoup4", "lxml"],
"version": "1.45.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ def get_data_by_source(self, source_type, url):

# check the information for the sector
for feature in schedule["features"]:

if feature["properties"]["SECTEUR"] != self._sector:
continue
schedule_message = feature["properties"]["MESSAGE_EN"]
Expand All @@ -261,10 +260,8 @@ def get_data_by_source(self, source_type, url):
return entries

def fetch(self):

entries = []
for source in API_URL:

try:
entries += self.get_data_by_source(source["type"], source["url"])
except Exception:
Expand Down

0 comments on commit 252fb47

Please sign in to comment.