mampfes / hacs_waste_collection_schedule

Home Assistant integration framework for (garbage collection) schedules
MIT License
984 stars 632 forks source link

[Bug]: Portenf Source Issue #2490

Open illuzn opened 3 weeks ago

illuzn commented 3 weeks ago

I Have A Problem With:

A specific source

What's Your Problem

The fetch fails with the error below.

This is the calendar state when the error occurs (address redacted for privacy)

image

Source (if relevant)

portenf_sa_gov_au

Logs

fetch failed for source Port Adelaide Enfield, South Australia: Traceback (most recent call last): File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source_shell.py", line 145, in fetch entries = self._source.fetch() ^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source/portenf_sa_gov_au.py", line 175, in fetch "other-month" in today_div.attrs["class"] ^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'attrs'

Relevant Configuration

Not Applicable

Checklist Source Error

Checklist Sensor Error

Required

illuzn commented 3 weeks ago

Sorry to keep doing this to you.

5ila5 commented 3 weeks ago

AHHHHHHH They changed the logic and do not highlight today anymore, but the next collection day.

I think this is one of the worst sources.