mampfes / hacs_waste_collection_schedule

Home Assistant integration framework for (garbage collection) schedules
MIT License
1.08k stars 658 forks source link

[Bug]: de.k4systems.abfallinfoapp Mechernich und Kommunen - source defect #2033

Closed sschoebel closed 6 months ago

sschoebel commented 6 months ago

I Have A Problem With:

A specific source

What's Your Problem

Source is broken. Worked until 26.04.2024

Version 1.47.0

Source (if relevant)

de.k4systems.abfallinfoapp Mechernich und Kommunen

Logs

Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: waste_collection_schedule.source_shell
Quelle: custom_components/waste_collection_schedule/waste_collection_schedule/source_shell.py:136
Integration: waste_collection_schedule (Dokumentation)
Erstmals aufgetreten: 22:39:45 (1 Vorkommnisse)
Zuletzt protokolliert: 22:39:45

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 786, in generate_calendar self.select_kommune() File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/service/AppAbfallplusDe.py", line 502, in select_kommune raise Exception(f"Region {self._region_search} not found.") Exception: Region Weilerswist not found.

Relevant Configuration

waste_collection_schedule:
  sources:
    - name: app_abfallplus_de
      args:
        app_id: de.k4systems.abfallinfoapp
        city: Weilerswist
        strasse: xxx
        hnr: xxx
      customize:
        - type: Restabfall
          alias: schwarz
          icon: mdi:trash-can
        - type: Leichtverpackungen
          alias: gelb
          icon: mdi:recycle
        - type: Bioabfall
          alias: braun
          icon: mdi:trash-can
        - type: Papier Pappe Karton
          alias: blau
          icon: mdi:trash-can
  fetch_time: "04:00"
  day_switch_time: "11:00"

Checklist Source Error

Checklist Sensor Error

Required

sschoebel commented 6 months ago

service provider app tested with my attributes: this is fine.

sschoebel commented 6 months ago

similar to #1989

changes to abfallinfoapp

sschoebel commented 6 months ago

custom_components/waste_collection_schedule/waste_collection_schedule/service/AppAbfallplusDe.py from master fixed it for now