Repository: mampfes/hacs_waste_collection_schedule

Issue:
[Bug]: Waste type not showing for City of Doncaster  (Green Bin Collection)
### I Have A Problem With:

A specific source, The integration in general

### What's Your Problem

For Doncaster Council the Green bin collection only runs 9months out of 12. Next collection is in early March which can be viewed via the Council bin look-up calendar, but the waste type is not returned on the integration, it only seems to scrape 3 weeks in advance, can this be changed? 

### Source (if relevant)

doncaster_gov_uk

### Logs

```Shell
no relevant logs
```


### Relevant Configuration

```YAML
waste_collection_schedule:
    sources:
    - name: doncaster_gov_uk
      args:
        uprn: "xxxxxxx"

  - platform: waste_collection_schedule
    name: Bins
    details_format: appointment_types
    leadtime: 90
#    value_template: VALUE_TEMPLATE
#    date_template: DATE_TEMPLATE
    add_days_to: true
#    event_index: EVENT_INDEX
```


### Checklist Source Error

- [X] Use the example parameters for your source (often available in the documentation) (don't forget to restart Home Assistant after changing the configuration)
- [X] Checked that the website of your service provider is still working
- [ ] Tested my attributes on the service provider website (if possible)
- [X] I have tested with the latest version of the integration (master) (for HACS in the 3 dot menu of the integration click on "Redownload" and choose master as version)

### Checklist Sensor Error

- [X] Checked in the Home Assistant Calendar tab if the event names match the types names (if types argument is used)

### Required

- [X] I have searched past (closed AND opened) issues to see if this bug has already been reported, and it hasn't been.
- [X] I understand that people give their precious time for free, and thus I've done my very best to make this problem as easy as possible to investigate.


Discussion:

Resolving patch:
diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/doncaster_gov_uk.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/doncaster_gov_uk.py
--- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/doncaster_gov_uk.py
+++ b/custom_components/waste_collection_schedule/waste_collection_schedule/source/doncaster_gov_uk.py
@@ -1,11 +1,14 @@
-import re
-import requests
 import json
+import re
 from datetime import datetime, timedelta
+
+import requests
 from waste_collection_schedule import Collection  # type: ignore[attr-defined]
 
 TITLE = "City of Doncaster Council"
-DESCRIPTION = "Source for doncaster.gov.uk services for the City of Doncaster Council, UK."
+DESCRIPTION = (
+    "Source for doncaster.gov.uk services for the City of Doncaster Council, UK."
+)
 URL = "https://doncaster.gov.uk"
 
 TEST_CASES = {
@@ -29,13 +32,11 @@ class Source:
     def __init__(self, uprn):
         self._uprn = str(uprn).zfill(12)
 
-
     def fetch(self):
-
-        # Query needs start and end epoch dates    
+        # Query needs start and end epoch dates
         today = datetime.now().replace(hour=0, minute=0, second=0, microsecond=0)
-        start = (today - timedelta(weeks=3)).strftime("%s")
-        end = (today + timedelta(weeks=3)).strftime("%s")
+        start = (today - timedelta(days=365)).strftime("%s")
+        end = (today + timedelta(days=365)).strftime("%s")
         url = f"https://www.doncaster.gov.uk/Compass/PremiseDetail/GetCollectionsForCalendar?UPRN={self._uprn}&Start={start}&End={end}"
         # start = start.strftime("%s")
         # end = end.strftime("%s")


Test patch: