Repository: mampfes/hacs_waste_collection_schedule

Issue:
[Bug]: waste-collection-schedule ohne Funktion
### I Have A Problem With:

A specific source

### What's Your Problem

seit dem Monatswechsel werden keine Daten mehr von der Quelle 'Bonn' gezogen ... Entität 'unknown'

### Source (if relevant)

 Orange Bonn

### Logs

_No response_

### Relevant Configuration

_No response_

### 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

- [ ] 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:
Same here:

```
fetch failed for source Apps by Abfall+: Traceback (most recent call last): File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source_shell.py", line 134, in fetch entries = self._source.fetch() ^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source/app_abfallplus_de.py", line 140, in fetch for d in self._app.generate_calendar(): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/service/AppAbfallplusDe.py", line 760, in generate_calendar self.select_kommune() File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/service/AppAbfallplusDe.py", line 500, in select_kommune raise Exception(f"Region {self._region_search} not found.") Exception: Region Bonn not found.


Resolving patch:
diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/service/AppAbfallplusDe.py b/custom_components/waste_collection_schedule/waste_collection_schedule/service/AppAbfallplusDe.py
--- a/custom_components/waste_collection_schedule/waste_collection_schedule/service/AppAbfallplusDe.py
+++ b/custom_components/waste_collection_schedule/waste_collection_schedule/service/AppAbfallplusDe.py
@@ -589,7 +589,8 @@ def get_streets(self, search=None):
     def select_street(self, street=None):
         if street:
             self._strasse_search = street
-        for street in self.get_streets():
+        streets = self.get_streets()
+        for street in streets:
             if compare(street["name"], self._strasse_search):
                 self._f_id_strasse = self._strasse_id = street["id"]
                 if street["id_kommune"] is not None:
@@ -598,7 +599,9 @@ def select_street(self, street=None):
                     self._bezirk_id = street["id_beirk"]
                 self._hnrs = street["hrns"]
                 return
-        raise Exception(f"Street {self._strasse_search} not found.")
+        raise Exception(
+            f"Street '{self._strasse_search}' not found., available: {streets}"
+        )
 
     def get_hrn_needed(self) -> bool:
         return self._hnrs


Test patch: