-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Salford City Council: 'NoneType' has no attribute 'find_all' #1097
Comments
I've done a little troubleshooting and can report the following: 2.) looking at the soup sequence from SalfordCityCouncil.py (lines 38/39), Div class wastefurther is still available on the council website which also looks unchanged to previously. However: lines 41/42 seem to fail which gives the error. Specifically find_all Using ukbin-ukbc_api_server docker image, the server response is (Also tried with SandwellBoroughCouncil and that works fine) |
Same issue for Scarborough, which uses the North Yorkshire api I guess? Was fine day or so ago |
Please open a new issue and post your HA logs |
Name of Council
Salford City Council
Issue Information
Not exactly sure when it stopped working but it worked as expected on 12 December.
Issue on Home Assistant is "Failed setup, will retry: Unexpected error: 'NoneType' has no attribute 'find_all'"
Issue also verified/experience by two other Home Assistant user who also live in Salford.
Issue can be very easily replicated in Home Assistant.
UK Bin Collection Integration version: 0.123.2
Home Assistant Integration: 2024.12.5
Debug Log below:
AttributeError: 'NoneType' object has no attribute 'find_all'
2024-12-21 15:33:44.871 ERROR (MainThread) [custom_components.uk_bin_collection] [UKBinCollection] Unexpected error: 'NoneType' object has no attribute 'find_all'
Traceback (most recent call last):
File "/config/custom_components/uk_bin_collection/init.py", line 250, in _async_update_data
data = await asyncio.wait_for(
^^^^^^^^^^^^^^^^^^^^^^^
...<2 lines>...
)
^
File "/usr/local/lib/python3.13/asyncio/tasks.py", line 507, in wait_for
return await fut
^^^^^^^^^
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.13/site-packages/uk_bin_collection/uk_bin_collection/collect_data.py", line 101, in run
return self.client_code(
The text was updated successfully, but these errors were encountered: