From fbd494b9a42b254336afe79472a319dc5dde3728 Mon Sep 17 00:00:00 2001 From: 5ila5 <5ila5@users.noreply.github.com> Date: Tue, 24 Sep 2024 15:41:17 +0200 Subject: [PATCH] reformatting + typo fix --- .../source/folkestone_hythe_gov_uk.py | 5 ++--- doc/source/folkestone_hythe_gov_uk.md | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/folkestone_hythe_gov_uk.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/folkestone_hythe_gov_uk.py index f8de91668..b51878ec7 100644 --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/folkestone_hythe_gov_uk.py +++ b/custom_components/waste_collection_schedule/waste_collection_schedule/source/folkestone_hythe_gov_uk.py @@ -1,8 +1,8 @@ -from datetime import datetime import re +from datetime import datetime + import requests from bs4 import BeautifulSoup - from waste_collection_schedule import Collection # type: ignore[attr-defined] TITLE = "Folkestone and Hythe District Councol" @@ -24,7 +24,6 @@ def __init__(self, uprn: str | int): self._uprn = str(uprn) def fetch(self): - s = requests.Session() r = s.get( f"https://service.folkestone-hythe.gov.uk/webapp/myarea/index.php?uprn={self._uprn}" diff --git a/doc/source/folkestone_hythe_gov_uk.md b/doc/source/folkestone_hythe_gov_uk.md index ed17c7a68..c28a47ff3 100644 --- a/doc/source/folkestone_hythe_gov_uk.md +++ b/doc/source/folkestone_hythe_gov_uk.md @@ -32,5 +32,5 @@ waste_collection_schedule: ## How to get the source argument -Your UPRN is displayed on the council web site underneath your address when it displays your bin collection shedule. +Your UPRN is displayed on the council web site underneath your address when it displays your bin collection schedule. An easy way to discover your Unique Property Reference Number (UPRN) is by going to and entering in your address details.