From bc4150dbb24158b12e34b644f4e321d7f883c14c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20M=C3=A5rdestam?= Date: Thu, 25 Jul 2024 22:16:31 +0200 Subject: [PATCH] =?UTF-8?q?Add=20support=20for=20Bor=C3=A5s=20sweden?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../source/edpevent_se.py | 19 ++++++++++++++++++- doc/source/edpevent_se.md | 1 + 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/edpevent_se.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/edpevent_se.py index fe25ba24..ac98f3c3 100644 --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/edpevent_se.py +++ b/custom_components/waste_collection_schedule/waste_collection_schedule/source/edpevent_se.py @@ -41,6 +41,18 @@ TEST_CASES = { "street_address": "Frögatan 76 -150", "service_provider": "skelleftea", }, + "Borås - Test1": { + "street_address": "Länghemsgatan 10", + "service_provider": "boras", + }, + "Borås - Test2": { + "street_address": "Yttre Näs 1, Seglora", + "service_provider": "boras", + }, + "Borås - Test3": { + "street_address": "Stora Hyberg 1, Brämhult", + "url": "https://kundportal.borasem.se/EDPFutureWeb/SimpleWastePickup", + }, } COUNTRY = "se" @@ -53,7 +65,7 @@ ICON_MAP = { "Deponi": "mdi:recycle", "Restavfall": "mdi:trash-can", "Matavfall": "mdi:food-apple", - "Slam": "", + "Slam": "mdi:emoticon-poop", "Trädgårdsavfall": "mdi:leaf", } @@ -99,6 +111,11 @@ SERVICE_PROVIDERS = { "url": "https://uppsalavatten.se", "api_url": "https://futureweb.uppsalavatten.se/Uppsala/FutureWeb/SimpleWastePickup", }, + "boras": { + "title": "Borås Energi och Miljö", + "url": "https://www.borasem.se", + "api_url": "https://kundportal.borasem.se/EDPFutureWeb/SimpleWastePickup", + }, } EXTRA_INFO = [ diff --git a/doc/source/edpevent_se.md b/doc/source/edpevent_se.md index 976fe6f2..f807d395 100644 --- a/doc/source/edpevent_se.md +++ b/doc/source/edpevent_se.md @@ -92,3 +92,4 @@ To find your correct address, search for it on your service providers website: - [Skellefteå](https://skelleftea.se/invanare/startsida/bygga-bo-och-miljo/avfall-och-atervinning/sophamtning---nar-toms-soporna) - [SSAM](https://ssam.se/mitt-ssam/hamtdagar.html) - [Uppsala Vatten](https://www.uppsalavatten.se/sjalvservice/hamtningar-och-berakningar/dag-for-sophamtning-och-slamtomning) +- [Borås](https://www.borasem.se/webb/privat/avfallochatervinning/abonnemangforhushallsavfall/nastatomningsdag.4.5a231a8f188bd840a1327da.html)