Skip to content
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

Integration no longer works/sets up since recent update #1084

Open
4 tasks done
cadwizzard opened this issue Dec 16, 2024 · 3 comments · May be fixed by #1088
Open
4 tasks done

Integration no longer works/sets up since recent update #1084

cadwizzard opened this issue Dec 16, 2024 · 3 comments · May be fixed by #1088
Assignees
Labels
bug Something isn't working home assistant custom component Something related to the home assistant custom component

Comments

@cadwizzard
Copy link

Home Assistant Version

2024.12.3

Installation Method

Using HACS

Name of Council (if relevant)

West Lindsey District Council

Issue Information

The integration will not start and results in an error. I have tried deleting the address and setting it up from scratch. I'm running the latest prompted version.
`Logger: custom_components.uk_bin_collection
Source: custom_components/uk_bin_collection/init.py:250
integration: UK Bin Collection Data (documentation, issues)
First occurred: 15 December 2024 at 10:48:01 (1353 occurrences)
Last logged: 17:31:03

[UKBinCollection] Unexpected error: can only concatenate str (not "relativedelta") to str
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/WestLindseyDistrictCouncil.py", line 101, in parse_data
full_date = bin_date + relativedelta(years=1)
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
TypeError: can only concatenate str (not "relativedelta") to str`

Verification

@cadwizzard cadwizzard added bug Something isn't working home assistant custom component Something related to the home assistant custom component labels Dec 16, 2024
@robbrad
Copy link
Owner

robbrad commented Dec 17, 2024

@cadwizzard - I dont think this is due to the intergration update because the code for West Lindsey District Council hasnt changed.

I tried running the intergration test against the council and it fails too - so my guess is the council has changed their website. If this is the case then the code for the council will need a change

@cadwizzard
Copy link
Author

It could entirely be the council, I only see the integration on my dashboard visibility at certain days just before the bins are due collected.
It the time of year they plan calendars for next year too.

Are you on the fix, or do you need me to create a different issue under 'council issue' ?

@robbrad
Copy link
Owner

robbrad commented Dec 17, 2024

No don't make a new issue we can rename this one

@dp247 dp247 self-assigned this Dec 17, 2024
@dp247 dp247 linked a pull request Dec 17, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working home assistant custom component Something related to the home assistant custom component
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants