-
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
Error while setting up uk_bin_collection platform for sensor #709
Comments
fix: #709 Update DoverDistrictCouncil.py
Thanks @robbrad - Do you know how long it takes to get pushed through, as tried yesterday and today and still no joy |
@davelegg83 It's done - just upgrade the custom component and you should be good |
Just uninstalled, re-downloaded and set up and still no joy im afraid @robbrad - These are the errors in the log.
|
@davelegg83 - now that is a different error ! |
Sorry to be a pain! |
Im wondering if its cos you are on Python 3.12 - we dont yet support that Ignore that my test Home Assistant is Python 3.12 |
Just to double check i've got the basics right! Just redownloaded and set up again, but no joy.
|
Thanks @robbrad - Got it working! Works a treat now I just added the direct URL! |
I seem to be facing a very similar issue with Neath Port Talbot. I am running via HACS in Home Assistant and using standalone-chrome within a docker container. I can see the session in standalone chrome but it appears to be blank. Home Assistant Error
Any help in getting this working would be greatly appreciated. |
@jezza10d This isnt related to the problem @davelegg83 was facing NeathPortTalbot have changed their website and the scraper needs to be updated. Please raise an issue for the broken council scraper (NeathPortTalbot) |
Name of Council
Dover District Council
Issue Information
Installed via HACS and HA restarted.
Location - Home
Council - Dover District Council
URN - python collect_data.py DoverDistrictCouncil https://collections.dover.gov.uk/property/XXXXXXXXXXX
I replaced xxxx with my UPRN. I can also go direct to https://collections.dover.gov.uk/property/XXXXXXXXXXX using my UPRN and it loads up my collection dates.
However when all submitted it shows no devices or entities.
In the log I have these errors:
`Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:356
integration: Sensor (documentation, issues)
First occurred: 09:41:52 (9 occurrences)
Last logged: 10:08:13
Error while setting up uk_bin_collection platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 315, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/uk_bin_collection/sensor.py", line 133, in _async_update_data
data = await self.hass.async_add_executor_job(self.ukbcd.run)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/uk_bin_collection/uk_bin_collection/collect_data.py", line 96, in run
return self.client_code(
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/uk_bin_collection/uk_bin_collection/collect_data.py", line 115, in client_code
return get_bin_data_class.template_method(address_url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/uk_bin_collection/uk_bin_collection/get_bin_data.py", line 65, in template_method
page = self.get_data(address_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/uk_bin_collection/uk_bin_collection/get_bin_data.py", line 122, in get_data
full_page = requests.get(url, headers, verify=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/requests/api.py", line 73, in get
return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 697, in send
adapter = self.get_adapter(url=request.url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 794, in get_adapter
raise InvalidSchema(f"No connection adapters were found for {url!r}")
requests.exceptions.InvalidSchema: No connection adapters were found for 'python collect_data.py DoverDistrictCouncil https://collections.dover.gov.uk/property/100060906311'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 356, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/uk_bin_collection/sensor.py", line 75, in async_setup_entry
await coordinator.async_config_entry_first_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 287, in async_config_entry_first_refresh
raise ex
homeassistant.exceptions.ConfigEntryNotReady: No connection adapters were found for 'python collect_data.py DoverDistrictCouncil https://collections.dover.gov.uk/property/1000'`
and
`Logger: uk_bin_collection.uk_bin_collection.get_bin_data
Source: /usr/local/lib/python3.12/site-packages/uk_bin_collection/uk_bin_collection/get_bin_data.py:134
First occurred: 09:41:52 (9 occurrences)
Last logged: 10:08:13
Oops: Something Else No connection adapters were found for 'python collect_data.py DoverDistrictCouncil https://collections.dover.gov.uk/property/10006'`
I've removed my UPRN from the code.
Any help greatly appreciated.
Verification
The text was updated successfully, but these errors were encountered: