Skip to content

Bin collection fails to initialise after upgrading to HA 2026.3.0 #1876

@RealGandy

Description

@RealGandy

Home Assistant Version

2026.3.0

Installation Method

Using HACS

Name of Council (if relevant)

Bath and North East Somerset

Issue Information

Errors get logged in ha log file and no data is collected, was working fine before upgraded to 2026.3.0.


2026-03-04 22:44:06.676 ERROR (MainThread) [custom_components.uk_bin_collection] [UKBinCollection] Unexpected error in async_setup_entry: Unexpected error: Error parsing data. Please check the provided UPRN. If this error continues please open an issue on GitHub.
Traceback (most recent call last):
  File "/config/custom_components/uk_bin_collection/__init__.py", line 348, in _async_update_data
    data = await asyncio.wait_for(
           ^^^^^^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
    )
    ^
  File "/usr/local/lib/python3.14/asyncio/tasks.py", line 488, in wait_for
    return await fut
           ^^^^^^^^^
  File "/usr/local/lib/python3.14/concurrent/futures/thread.py", line 86, in run
    result = ctx.run(self.task)
  File "/usr/local/lib/python3.14/concurrent/futures/thread.py", line 73, in run
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.14/site-packages/uk_bin_collection/uk_bin_collection/collect_data.py", line 101, in run
    return self.client_code(
           ~~~~~~~~~~~~~~~~^
        council_module.CouncilClass(),
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<9 lines>...
        council_module_str=self.parsed_args.module,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.14/site-packages/uk_bin_collection/uk_bin_collection/collect_data.py", line 121, in client_code
    return get_bin_data_class.template_method(address_url, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/uk_bin_collection/uk_bin_collection/get_bin_data.py", line 61, in template_method
    bin_data_dict = self.get_and_parse_data(this_url, **kwargs)
  File "/usr/local/lib/python3.14/site-packages/uk_bin_collection/uk_bin_collection/get_bin_data.py", line 82, in get_and_parse_data
    bin_data_dict = self.parse_data(page, url=address_url, **kwargs)
  File "/usr/local/lib/python3.14/site-packages/uk_bin_collection/uk_bin_collection/councils/BathAndNorthEastSomersetCouncil.py", line 63, in parse_data
    raise ValueError(
    ...<2 lines>...
    )
ValueError: Error parsing data. Please check the provided UPRN. If this error continues please open an issue on GitHub.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 426, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/uk_bin_collection/__init__.py", line 383, in _async_update_data
    raise UpdateFailed(f"Unexpected error: {exc}") from exc
homeassistant.helpers.update_coordinator.UpdateFailed: Unexpected error: Error parsing data. Please check the provided UPRN. If this error continues please open an issue on GitHub.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/config/custom_components/uk_bin_collection/__init__.py", line 212, in async_setup_entry
    await coordinator.async_config_entry_first_refresh()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 319, in async_config_entry_first_refresh
    await self._async_config_entry_first_refresh()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 351, in _async_config_entry_first_refresh
    raise ex
homeassistant.exceptions.ConfigEntryNotReady: Unexpected error: Error parsing data. Please check the provided UPRN. If this error continues please open an issue on GitHub

Verification

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghome assistant custom componentSomething related to the home assistant custom component

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions