From 0deed3d78a75477e8e95aaec58362689170c496c Mon Sep 17 00:00:00 2001 From: 5ila5 <5ila5@users.noreply.github.com> Date: Mon, 6 Jan 2025 12:24:21 +0100 Subject: [PATCH] reformatting --- .../source/abfall_havelland_de.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/abfall_havelland_de.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/abfall_havelland_de.py index ca95732f7..05b65fc33 100644 --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/abfall_havelland_de.py +++ b/custom_components/waste_collection_schedule/waste_collection_schedule/source/abfall_havelland_de.py @@ -1,6 +1,5 @@ # There was an ICS source but the ICS file was not stored permanently and would be removed after a few days. import requests -from bs4 import BeautifulSoup, Tag from waste_collection_schedule import Collection # type: ignore[attr-defined] from waste_collection_schedule.service.ICS import ICS @@ -13,14 +12,11 @@ "strasse": "Drosselgasse", }, "Milow Friedhofstr.": {"ort": "Milow", "strasse": "Friedhofstr."}, - "Falkensee Ahornstr.": { - "ort": "Falkensee", - "strasse": "Ahornstr." - }, + "Falkensee Ahornstr.": {"ort": "Falkensee", "strasse": "Ahornstr."}, "Falkensee complex street name": { "ort": "Falkensee", - "strasse": "Karl-Marx-Str. (von Friedrich-Hahn-Str. bis Am Schlaggraben)" - } + "strasse": "Karl-Marx-Str. (von Friedrich-Hahn-Str. bis Am Schlaggraben)", + }, } ICON_MAP = { @@ -32,6 +28,7 @@ API_URL = "https://www.abfall-havelland.de/ics.php" + class Source: def __init__(self, ort: str, strasse: str): self._ort: str = ort