mampfes / hacs_waste_collection_schedule

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

[Bug]: fetch failed for source Apps by Abfall+ #1411

Closed Barneybaer84 closed 11 months ago

Barneybaer84 commented 12 months ago

I Have A Problem With:

A specific source, The integration in general

What's Your Problem

Bekomme es nicht zum Laufen. Immer Fehler bei der Einrichtung.

Source (if relevant)

de.abfallwecker

Logs

` Logger: waste_collection_schedule.source_shell
Source: custom_components/waste_collection_schedule/waste_collection_schedule/source_shell.py:136
Integration: waste_collection_schedule (documentation)
First occurred: 21:14:32 (1 occurrences)
Last logged: 21:14:32
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 109, in fetch for d in self._app.generate_calendar(): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/service/AppAbfallplusDe.py", line 676, in generate_calendar self.select_bundesland() File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/service/AppAbfallplusDe.py", line 401, in select_bundesland for bundesland in self.get_bundeslaender(): ^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/service/AppAbfallplusDe.py", line 393, in get_bundeslaender "name": a[1], ~^^^ IndexError: list index out of range `

Relevant Configuration

waste_collection_schedule:
    sources:
    - name: app_abfallplus_de
      args:
        app_id: de.abfallwecker
        bundesland: Sachsen
        landkreis: Landkreis Nordsachsen
        city: xxx
        strasse: xxx
        hnr: x

Checklist Source Error

Checklist Sensor Error

Required

5ila5 commented 12 months ago

There is deffenetly something wrong with handling de.abfallwecker it somehow messes up Bundesland selection. Most of the supported apps do not require this step. I will look into it.

5ila5 commented 11 months ago

Fixed in above #1414. Fix will be part of release 1.44.0 or is available now as master (git) version (HACS: 3-dot menu -> redownload -> change version to master)