-
Notifications
You must be signed in to change notification settings - Fork 100
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
NoneType has no atribute #1082
Comments
@kieranlittle667 I have the same problem with the same council (Northumberland). It worked prior to December, but now doesn't. I have a feeling its the selenium package im using may need an update... i'm using this one here: If a Dev or anyone else can advise if this needs an update or some coding changed, I'll be very happy to test. |
My home assistant log details: `Logger: custom_components.uk_bin_collection Traceback (most recent call last): |
Hi,
I think the issue is if you actually look at the northumberland website the
bin calendar currently does not show any dates, so what the script is
expecting to interact with on the page just isn't there.
…On Fri, 20 Dec 2024 at 12:29, MithUK1 ***@***.***> wrote:
My home assistant log details:
`Logger: custom_components.uk_bin_collection
Source: custom_components/uk_bin_collection/*init*.py:250
integration: UK Bin Collection Data (documentation
<https://github.com/robbrad/UKBinCollectionData/wiki>, issues
<https://github.com/robbrad/UKBinCollectionData/issues>)
First occurred: 11:49:15 (5 occurrences)
Last logged: 11:50:34
[UKBinCollection] Unexpected error: 'NoneType' object has no attribute
'replace'
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(
~~~~~~~~~~~~~~~~^
council_module.CouncilClass(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<9 lines>...
council_module_str=self.parsed_args.module,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File
"/usr/local/lib/python3.13/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.13/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.13/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.13/site-packages/uk_bin_collection/uk_bin_collection/councils/NorthumberlandCouncil.py",
line 77, in parse_data
.string.replace("Routes found: ", "")
^^^^^^^
AttributeError: 'NoneType' object has no attribute 'replace'`
—
Reply to this email directly, view it on GitHub
<#1082 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKV3FS2QRONYAVB76JYEQML2GQESNAVCNFSM6AAAAABTVVZAD2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJWHEYTGNZVGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
--------------
Kieran Little
email: ***@***.***
|
This is most likely it - I'll take a look but if it's a data issue, then there's nothing we can do |
Home Assistant Version
2024.12.2
Installation Method
Using HACS
Name of Council (if relevant)
Northumberland County Council
Issue Information
I'm getting the following errors
[UKBinCollection] Unexpected error: ’NoneType’ object has no attribute ’replace’09:17:35 – (ERROR) UK Bin Collection Data (custom integration)- message
first occurred at 09:05:58 and shows up 6 times
[UKBinCollection] Unexpected error: Message: element not interactable (Session info: chrome=131.0.6778.108) Stacktrace: #0 0x55f7ec31b34a #1
first occurred at 09:05:58 and shows up 6 times
[UKBinCollection] Unexpected error: ’NoneType’ object has no attribute ’replace’09:17:35 – (ERROR) UK Bin Collection Data (custom integration)- message
first occurred at 09:05:58 and shows up 6 times
[UKBinCollection] Unexpected error: Message: element not interactable (Session info: chrome=131.0.6778.108) Stacktrace: #0 0x55f7ec31b34a #1
0x55f7ebe3153d #2 0x55f7ebe8154c #3 0x55f7ebe750d5 #4 0x55f7ebea4462 #5 0x55f7ebe74a18 #6 0x55f7ebea462e
#7 0x55f7ebec2ed7 #8 0x55f7ebea4203 #9 0x55f7ebe72cc0 #10 0x55f7ebe73c9e #11 0x55f7ec2e8d3b
#12 0x55f7ec2eccc2 #13 0x55f7ec2d5b6c #14 0x55f7ec2ed837 #15 0x55f7ec2bb10f #16 0x55f7ec30a5a8 #17 0x55f7ec30a770
#18 0x55f7ec31a1c6 #19 0x7f0dbf777a94 #20 0x7f0dbf804a34 __clone 09:13:41 – (ERROR) UK Bin Collection Data (custom integration)-
message first occurred at 09:07:56 and shows up 3 times
Verification
The text was updated successfully, but these errors were encountered: