MrBearPresident / JBL_Soundbar

Home Assisstant custom integration to interact with a jbl soundbar based on the jbl one app
5 stars 0 forks source link

HA Log errors #5

Open czesiu20 opened 5 days ago

czesiu20 commented 5 days ago

One error and one warming appeared in my HA Log:

1. Rejestrator: custom_components.jbl_integration.coordinator Source: custom_components/jbl_integration/coordinator.py:309 Integration: JBL Integration Error getting EQ: 'eq_setting'

2. Rejestrator: homeassistant.util.loop Source: util/loop.py:136

Detected blocking call to load_verify_locations with args (<ssl.SSLContext object at 0x7f9035ced0>, '/usr/local/lib/python3.12/site-packages/certifi/cacert.pem', None, None) inside the event loop by custom integration 'jbl_integration' at custom_components/jbl_integration/coordinator.py, line 32: ssl_context = ssl.create_default_context(cafile=certifi.where()) (offender: /usr/local/lib/python3.12/ssl.py, line 708: context.load_verify_locations(cafile, capath, cadata)), please create a bug report at https://github.com/MrBearPresident/JBL_Soundbar/issues For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#load_verify_locations Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/main.py", line 223, in 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/src/homeassistant/homeassistant/setup.py", line 165, in async_setup_component result = await _async_setup_component(hass, domain, config) File "/usr/src/homeassistant/homeassistant/setup.py", line 461, in _async_setup_component await asyncio.gather( File "/usr/src/homeassistant/homeassistant/setup.py", line 463, in create_eagertask( File "/usr/src/homeassistant/homeassistant/util/async.py", line 45, in create_eager_task return Task(coro, loop=loop, name=name, eager_start=True) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 742, in async_setup_locked await self.async_setup(hass, integration=integration) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/jbl_integration/init.py", line 25, in async_setup_entry coordinator = Coordinator(ip_address, polling_rate,hass, entry) File "/config/custom_components/jbl_integration/coordinator.py", line 32, in init ssl_context = ssl.create_default_context(cafile=certifi.where()) Detected blocking call to load_cert_chain with args (<ssl.SSLContext object at 0x7f9035ced0>,) inside the event loop by custom integration 'jbl_integration' at custom_components/jbl_integration/coordinator.py, line 49: self.sslcontext.load_cert_chain(certfile=cert_path, keyfile=key_path) (offender: /config/custom_components/jbl_integration/coordinator.py, line 49: self.sslcontext.load_cert_chain(certfile=cert_path, keyfile=key_path)), please create a bug report at https://github.com/MrBearPresident/JBL_Soundbar/issues For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#load_cert_chain Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/main.py", line 223, in 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/src/homeassistant/homeassistant/setup.py", line 165, in async_setup_component result = await _async_setup_component(hass, domain, config) File "/usr/src/homeassistant/homeassistant/setup.py", line 461, in _async_setup_component await asyncio.gather( File "/usr/src/homeassistant/homeassistant/setup.py", line 463, in create_eagertask( File "/usr/src/homeassistant/homeassistant/util/async.py", line 45, in create_eager_task return Task(coro, loop=loop, name=name, eager_start=True) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 742, in async_setup_locked await self.async_setup(hass, integration=integration) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/jbl_integration/init.py", line 26, in async_setup_entry await coordinator._SetupDeviceInfo() File "/config/custom_components/jbl_integration/coordinator.py", line 49, in _SetupDeviceInfo self.sslcontext.load_cert_chain(certfile=cert_path, keyfile=key_path) Detected blocking call to load_default_certs with args (<ssl.SSLContext object at 0x7f7f2727d0>,) inside the event loop by custom integration 'bambu_lab' at custom_components/bambu_lab/pybambu/bambu_client.py, line 332: self.client.tls_set(tls_version=ssl.PROTOCOL_TLS, cert_reqs=ssl.CERT_NONE) (offender: /usr/local/lib/python3.12/site-packages/paho/mqtt/client.py, line 806: context.load_default_certs()), please create a bug report at https://github.com/greghesp/ha-bambulab/issues For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#load_default_certs Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/main.py", line 223, in 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 "/config/custom_components/bambu_lab/coordinator.py", line 131, in listen self.client.connect(callback=self.event_handler) File "/config/custom_components/bambu_lab/pybambu/bambu_client.py", line 332, in connect self.client.tls_set(tls_version=ssl.PROTOCOL_TLS, cert_reqs=ssl.CERT_NONE)

MrBearPresident commented 4 days ago

Hey

The warning (second one) I noticed myself already I've even mentioned it here. It is caused by the fact that it has to read the 'client-credentials' that JBL added to there app. But to be honest, I've have no idea how to solve that.

So if somebody is clever enough you can make a PR for this.

For the error, can you explain when you experience this?

czesiu20 commented 4 days ago

For the error, can you explain when you experience this?

I have no idea. I have tried everything to trigger this error with no luck. It happens periodically in the background.