We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ba76b0 commit 6547dd8Copy full SHA for 6547dd8
custom_components/waste_collection_schedule/waste_collection_schedule/source/rushmoor_gov_uk.py
@@ -11,6 +11,7 @@
11
"GU14": {"uprn": "100060551749"},
12
}
13
14
+HEADERS = {"user-agent": "Mozilla/5.0 (xxxx Windows NT 10.0; Win64; x64)"}
15
ICON_MAP = {
16
"Refuse": "mdi:trash-can",
17
"Recycling": "mdi:recycle",
@@ -27,7 +28,7 @@ def __init__(self, uprn):
27
28
29
def fetch(self):
30
params = {"selectedAddress": self._uprn, "weeks": "16"}
- r = requests.get(API_URL, params=params)
31
+ r = requests.get(API_URL, params=params, headers=HEADERS)
32
r.raise_for_status()
33
data = r.json()
34
0 commit comments