You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like the source "Linköping - Tekniska Verken" does not work anymore.
I've tried several adresses with the correct output from the official webpage from Tekniska Verken.
I get the following error when I try to configure a new sensor:
The source returned an empty response. Please check the provided arguments and try again.
For my already configured sensor the logs are attached below, some "Blocking" occurs.
Source (if relevant)
tekniskaverken_se
Logs
2024-11-18 11:45:19.462 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open with args (PosixPath('/config/custom_components/waste_collection_schedule/sources.json'),) inside the event loop by custom integration 'waste_collection_schedule' at custom_components/waste_collection_schedule/config_flow.py, line 331: with p.open(encoding="utf-8") as json_file: (offender: /config/custom_components/waste_collection_schedule/config_flow.py, line 331: with p.open(encoding="utf-8") as json_file:), please report it to the author of the 'waste_collection_schedule' custom integration
For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#open
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in<module>sys.exit(main())
File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
exit_code = runner.run(runtime_conf)
File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
self._run_once()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once
handle._run()
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 556, in start
task = asyncio.Task(coro, loop=loop, eager_start=True)
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 477, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 559, in _handle
return await handler(request)
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 77, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 86, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware
response = await handler(request)
File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle
result = await handler(request, **request.match_info)
File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 81, in with_admin
return await func(self, request, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 74, in wrapper
return await method(view, request, data, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 172, in post
return await self._post_impl(request, data)
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 179, in _post_impl
return await super()._post_impl(request, data)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 84, in _post_impl
result = await self._flow_mgr.async_init(
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1301, in async_init
flow, result = await self._async_init(flow_id, handler, context, data)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1326, in _async_init
flow = await self.async_create_flow(handler, context=context, data=data)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1524, in async_create_flow
flow = handler()
File "/config/custom_components/waste_collection_schedule/config_flow.py", line 306, in __init__
self._sources = self._get_source_list()
File "/config/custom_components/waste_collection_schedule/config_flow.py", line 331, in _get_source_list
with p.open(encoding="utf-8") as json_file:
2024-11-18 11:58:58.297 DEBUG (MainThread) [custom_components.waste_collection_schedule.init_ui] Setting up entry e8b1e6a2080299f357284ed60dd065f6, with data {'args': {'city': 'Linköping ', 'street': 'XXX XXX'}, 'name': 'tekniskaverken_se'} and options {'calendar_title': 'Linköping - Tekniska Verken', 'customize': {'Hushållsavfall': {'alias': 'Hushållsavfall', 'icon': 'mdi:delete-empty', 'show': True}}, 'sensors': [{'add_days_to': True, 'additional': False, 'date_template': '{{value.date.strftime("%a, %Y-%m-%d")}}', 'details_format': 'upcoming', 'name': 'Garbage XXX', 'skip': False}]}
2024-11-18 11:58:58.620 DEBUG (MainThread) [custom_components.waste_collection_schedule.wcs_coordinator] Finished fetching waste_collection_schedule data in 0.309 seconds (success: True)
2024-11-18 11:58:58.623 DEBUG (MainThread) [custom_components.waste_collection_schedule.sensor] Adding sensors for Linköping - Tekniska Verken
2024-11-18 11:58:58.623 DEBUG (MainThread) [custom_components.waste_collection_schedule.sensor] Config: <ConfigEntry entry_id=e8b1e6a2080299f357284ed60dd065f6 version=2 domain=waste_collection_schedule title=Linköping - Tekniska Verken state=ConfigEntryState.SETUP_IN_PROGRESS unique_id=tekniskaverken_se{"street": "XXXXXX", "city": "Link\u00f6ping "}>
2024-11-18 11:58:58.625 DEBUG (MainThread) [custom_components.waste_collection_schedule.sensor] Adding sensor {'add_days_to': True, 'additional': False, 'date_template': '{{value.date.strftime("%a, %Y-%m-%d")}}', 'details_format': 'upcoming', 'name': 'Garbage XXX', 'skip': False}
Relevant Configuration
For example, this new config does not work:
Country: SwedenProvider: Linköping - Tekniska Verken "tekniskaverken_se"Adress: Kompanigatan 30City: Linköping
Checklist Source Error
Use the example parameters for your source (often available in the documentation) (don't forget to restart Home Assistant after changing the configuration)
Checked that the website of your service provider is still working
Tested my attributes on the service provider website (if possible)
I have tested with the latest version of the integration (master) (for HACS in the 3 dot menu of the integration click on "Redownload" and choose master as version)
Checklist Sensor Error
Checked in the Home Assistant Calendar tab if the event names match the types names (if types argument is used)
Required
I have searched past (closed AND opened) issues to see if this bug has already been reported, and it hasn't been.
I understand that people give their precious time for free, and thus I've done my very best to make this problem as easy as possible to investigate.
The text was updated successfully, but these errors were encountered:
I Have A Problem With:
A specific source
What's Your Problem
It seems like the source "Linköping - Tekniska Verken" does not work anymore.
I've tried several adresses with the correct output from the official webpage from Tekniska Verken.
I get the following error when I try to configure a new sensor:
For my already configured sensor the logs are attached below, some "Blocking" occurs.
Source (if relevant)
tekniskaverken_se
Logs
Relevant Configuration
Checklist Source Error
Checklist Sensor Error
Required
The text was updated successfully, but these errors were encountered: