From 4379e19fb4c6aab553310be006ca915cf88e34d6 Mon Sep 17 00:00:00 2001 From: "ReneNulschDE.github@Nulsch.de" Date: Tue, 23 Jan 2024 09:27:21 +0100 Subject: [PATCH] Fix Blacktown request --- .../source/blacktown_nsw_gov_au.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/blacktown_nsw_gov_au.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/blacktown_nsw_gov_au.py index e14ed3402..d01bc4042 100644 --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/blacktown_nsw_gov_au.py +++ b/custom_components/waste_collection_schedule/waste_collection_schedule/source/blacktown_nsw_gov_au.py @@ -41,7 +41,12 @@ "collection": "https://www.blacktown.nsw.gov.au/ocapi/Public/myarea/wasteservices?geolocationid={}&ocsvclang=en-AU", } -HEADERS = {"user-agent": "Mozilla/5.0"} +HEADERS = { + "user-agent": "Mozilla/5.0", + "accept": "text/plain, */*; q=0.01", + "Referer": "https://www.blacktown.nsw.gov.au/My-Neighbourhood", +} + ICON_MAP = { "General Waste": "trash-can",