I have updated to Version 0.172.2 and HA has been restarted. Also tested by adding another UPRN and getting the same error
This error originated from a custom integration.
Logger: custom_components.uk_bin_collection
Source: custom_components/uk_bin_collection/__init__.py:257
Integration: UK Bin Collection Data (documentation, issues)
First occurred: 5:10:10 AM (17 occurrences)
Last logged: 5:16:03 AM
[UKBinCollection] Unexpected error in async_setup_entry: Unexpected error: 'NoneType' object is not iterable
Traceback (most recent call last):
File "/config/custom_components/uk_bin_collection/__init__.py", line 408, 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 109, in run
return self.client_code(
~~~~~~~~~~~~~~~~^
council_module.CouncilClass(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<10 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 130, 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 64, 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 85, 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/BuckinghamshireCouncil.py", line 103, in parse_data
map(
~~~^
lambda a: {
^^^^^^^^^^^
...<3 lines>...
decoded_bins["collectionDay"],
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
TypeError: 'NoneType' object is not iterable
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 435, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/uk_bin_collection/__init__.py", line 443, in _async_update_data
raise UpdateFailed(f"Unexpected error: {exc}") from exc
homeassistant.helpers.update_coordinator.UpdateFailed: Unexpected error: 'NoneType' object is not iterable
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 257, in async_setup_entry
await coordinator.async_config_entry_first_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 325, in async_config_entry_first_refresh
await self._async_config_entry_first_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 360, in _async_config_entry_first_refresh
raise ex
homeassistant.exceptions.ConfigEntryNotReady: Unexpected error: 'NoneType' object is not iterable
Name of Council
Buckinghamshire
Issue Information
I saw on #2216 that Buckinghamshire should be fixed as well, but I am still getting "Failed setup, will retry: Unexpected error: 'NoneType' object is not iterable"
I have updated to Version 0.172.2 and HA has been restarted. Also tested by adding another UPRN and getting the same error
Log:
Verification