Skip to content

[Bug]: Croydon (UK) not working #5343

@rebordao

Description

@rebordao

I Have A Problem With:

A specific source

What's Your Problem

line 220, in fetch .attrs["data-current_value"] ^^^^^ AttributeError: 'NoneType' object has no attribute 'attrs'

Please see the attachment image.
Image

Source (if relevant)

croydon_gov_uk

Logs

This error originated from a custom integration.

Logger: custom_components.waste_collection_schedule.waste_collection_schedule.source_shell
Source: custom_components/waste_collection_schedule/waste_collection_schedule/source_shell.py:160
integration: Waste Collection Schedule (documentation)
First occurred: 17:28:51 (1 occurrence)
Last logged: 17:28:51

fetch failed for source Croydon Council: Traceback (most recent call last): File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source/croydon_gov_uk.py", line 212, in fetch .attrs["data-current_value"] ^^^^^ AttributeError: 'NoneType' object has no attribute 'attrs' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source_shell.py", line 158, in fetch entries: Iterable[Collection] = self._source.fetch() ~~~~~~~~~~~~~~~~~~^^ File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source/croydon_gov_uk.py", line 220, in fetch .attrs["data-current_value"] ^^^^^ AttributeError: 'NoneType' object has no attribute 'attrs'

Relevant Configuration

waste_collection_schedule:
    sources:
    - name: croydon_gov_uk
      args:
        postcode: "CR5 2BG"
        houseID: "18 South Drive"

Checklist Source Error

  • Use the example parameters for your source (often available in the documentation) (don't forget to restart Home Assistant after changing the configuration)
  • Checked that the website of your service provider is still working
  • Tested my attributes on the service provider website (if possible)
  • 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

  • I have searched past (closed AND opened) issues to see if this bug has already been reported, and it hasn't been.
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions