Sir, Yes Sir.
Happy to report that the component is working. Thank you so much for your work.
for those are facing the same issue, a hint: to set the collation of the MariaDB permanent:
edit /etc/mysql/conf.d/mysql.cnf & insert
[mysql]
default-character-set=utf8mb4
[mysqld]
collation-server = utf8mb4_unicode_ci
character-set-server = utf8mb4
a note: a warning in the HA log is still persist:
Logger: homeassistant.util.loop
Source: util/loop.py:136
First occurred: 19:44:04 (5 occurrences)
Last logged: 19:44:05
Detected blocking call to open with args (‘/dev/null’, ‘w’) inside the event loop by custom integration ‘mysql_query’ at custom_components/mysql_query/init.py, line 91: _cnx = mysql.connector.connect(**connect_kwargs) (offender: /usr/local/lib/python3.12/site-packages/mysql/connector/utils.py, line 419: with open(os.devnull, “w”, encoding=“utf-8”) as devnull:), please create a bug report at Issues · IAsDoubleYou/homeassistant-mysql_query · GitHub For developers, please see Blocking operations with asyncio | Home Assistant Developer Docs 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 416, in _async_setup_component result = await task File “/config/custom_components/mysql_query/init.py”, line 91, in async_setup _cnx = mysql.connector.connect(**connect_kwargs)
Detected blocking call to open with args (‘/etc/os-release’,) inside the event loop by custom integration ‘mysql_query’ at custom_components/mysql_query/init.py, line 91: _cnx = mysql.connector.connect(**connect_kwargs) (offender: /usr/local/lib/python3.12/site-packages/mysql/connector/utils.py, line 381: with open(os_release_file, encoding=“utf-8”) as file_obj:), please create a bug report at Issues · IAsDoubleYou/homeassistant-mysql_query · GitHub For developers, please see Blocking operations with asyncio | Home Assistant Developer Docs 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 416, in _async_setup_component result = await task File “/config/custom_components/mysql_query/init.py”, line 91, in async_setup _cnx = mysql.connector.connect(**connect_kwargs)
Detected blocking call to load_default_certs with args (<ssl.SSLContext object at 0xffff934b01d0>, <Purpose.SERVER_AUTH: _ASN1Object(nid=129, shortname=‘serverAuth’, longname=‘TLS Web Server Authentication’, oid=‘1.3.6.1.5.5.7.3.1’)>) inside the event loop by custom integration ‘mysql_query’ at custom_components/mysql_query/init.py, line 91: _cnx = mysql.connector.connect(**connect_kwargs) (offender: /usr/local/lib/python3.12/ssl.py, line 713: context.load_default_certs(purpose)), please create a bug report at Issues · IAsDoubleYou/homeassistant-mysql_query · GitHub For developers, please see Blocking operations with asyncio | Home Assistant Developer Docs 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 416, in _async_setup_component result = await task File “/config/custom_components/mysql_query/init.py”, line 91, in async_setup _cnx = mysql.connector.connect(**connect_kwargs)
Detected blocking call to load_default_certs with args (<ssl.SSLContext object at 0xffff934b01d0>,) inside the event loop by custom integration ‘mysql_query’ at custom_components/mysql_query/init.py, line 91: _cnx = mysql.connector.connect(**connect_kwargs) (offender: /usr/local/lib/python3.12/site-packages/mysql/connector/network.py, line 587: context.load_default_certs()), please create a bug report at Issues · IAsDoubleYou/homeassistant-mysql_query · GitHub For developers, please see Blocking operations with asyncio | Home Assistant Developer Docs 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 416, in _async_setup_component result = await task File “/config/custom_components/mysql_query/init.py”, line 91, in async_setup _cnx = mysql.connector.connect(**connect_kwargs)
Detected blocking call to import_module with args (‘.mysql_native_password’, ‘mysql.connector.plugins’) inside the event loop by custom integration ‘mysql_query’ at custom_components/mysql_query/init.py, line 91: _cnx = mysql.connector.connect(**connect_kwargs) (offender: /usr/local/lib/python3.12/site-packages/mysql/connector/plugins/init.py, line 151: plugin_module = importlib.import_module(f".{plugin_name}", package)), please create a bug report at Issues · IAsDoubleYou/homeassistant-mysql_query · GitHub For developers, please see Blocking operations with asyncio | Home Assistant Developer Docs 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 416, in _async_setup_component result = await task File “/config/custom_components/mysql_query/init.py”, line 91, in async_setup _cnx = mysql.connector.connect(**connect_kwargs)