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

Torridge: Failed Setup. Will retry....... #1204

Open
4 tasks done
nacbooth opened this issue Jan 30, 2025 · 1 comment · May be fixed by #1216
Open
4 tasks done

Torridge: Failed Setup. Will retry....... #1204

nacbooth opened this issue Jan 30, 2025 · 1 comment · May be fixed by #1216
Labels
bug Something isn't working

Comments

@nacbooth
Copy link

Name of Council

Torridge District

Issue Information

Using the integration in Home Assistant running on a NUC with HAOS and installed using HACS.

I have added my address (actually my UPRN = 10002297178) and am now seeing a message "Failed Setup, will retry: Unexpected error: CouncilClass.get_data() takes 1 positional argument but 2 were given".

I have proved that the integration itself can work by seeing what happens if I add my old address in Mole Valley - and that's fine, I see expected results. I have restarted HA, tried reconfiguring my details, tried a different nearby location and spent much time examining the files on my server and using my GoogleFu so far without much success.

Any clues where I should look or advice would be appreciated.

Verification

  • I searched for similar issues at https://github.com/robbrad/UKBinCollectionData/issues?q=is:issue and found no duplicates
  • I have checked my address/postcode/UPRN works on the council's website
  • I have provided a detailed explanation of the issue as well as steps to replicate the issue
  • I understand that this project is run by volunteer contributors therefore completion of this issue cannot be guaranteed
@nacbooth nacbooth added the bug Something isn't working label Jan 30, 2025
@nacbooth
Copy link
Author

Managed to get this from the logs:
`This error originated from a custom integration.

Logger: custom_components.uk_bin_collection
Source: custom_components/uk_bin_collection/init.py:250
integration: UK Bin Collection Data (documentation, issues)
First occurred: 20:22:54 (2 occurrences)
Last logged: 20:23:34

[UKBinCollection] Unexpected error: CouncilClass.get_data() takes 1 positional argument but 2 were given
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 59, 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 81, in get_and_parse_data
page = self.get_data(address_url)
TypeError: CouncilClass.get_data() takes 1 positional argument but 2 were given
`

@nacbooth nacbooth reopened this Jan 30, 2025
m26dvd added a commit to m26dvd/UKBinCollectionData that referenced this issue Feb 4, 2025
@m26dvd m26dvd linked a pull request Feb 4, 2025 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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant