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

HA Warnings at startup - "Detected Blocking call to import_module..." #823

Closed
GaryOkie opened this issue May 3, 2024 · 6 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@GaryOkie
Copy link

GaryOkie commented May 3, 2024

The problem

These ha-asusrouter warnings show up on startup with HA 2024.5. Warning requests creating a bug report - so, here you go... (thanks for reviewing)

2024-05-03 17:44:30.050 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module inside the event loop by custom integration 'asusrouter' at custom_components/asusrouter/bridge.py, line 272: raw = await self.api.async_get_data(datatype, force=force) (offender: /usr/local/lib/python3.12/site-packages/asusrouter/modules/endpoint/__init__.py, line 61: submodule = importlib.import_module(module_name)), please create a bug report at https://github.com/Vaskivskyi/ha-asusrouter/issues
2024-05-03 17:44:30.337 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module inside the event loop by custom integration 'asusrouter' at custom_components/asusrouter/bridge.py, line 512: data = await self.api.async_get_data(datatype) (offender: /usr/local/lib/python3.12/site-packages/asusrouter/modules/endpoint/__init__.py, line 61: submodule = importlib.import_module(module_name)), please create a bug report at https://github.com/Vaskivskyi/ha-asusrouter/issues
2024-05-03 17:44:30.347 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module inside the event loop by custom integration 'asusrouter' at custom_components/asusrouter/bridge.py, line 488: data = await self.api.async_get_data(datatype) (offender: /usr/local/lib/python3.12/site-packages/asusrouter/modules/endpoint/__init__.py, line 61: submodule = importlib.import_module(module_name)), please create a bug report at https://github.com/Vaskivskyi/ha-asusrouter/issues
2024-05-03 17:44:30.376 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module inside the event loop by custom integration 'asusrouter' at custom_components/asusrouter/bridge.py, line 512: data = await self.api.async_get_data(datatype) (offender: /usr/local/lib/python3.12/site-packages/asusrouter/modules/endpoint/__init__.py, line 61: submodule = importlib.import_module(module_name)), please create a bug report at https://github.com/Vaskivskyi/ha-asusrouter/issues
2024-05-03 17:44:30.387 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module inside the event loop by custom integration 'asusrouter' at custom_components/asusrouter/bridge.py, line 512: data = await self.api.async_get_data(datatype) (offender: /usr/local/lib/python3.12/site-packages/asusrouter/modules/endpoint/__init__.py, line 61: submodule = importlib.import_module(module_name)), please create a bug report at https://github.com/Vaskivskyi/ha-asusrouter/issues
2024-05-03 17:44:30.444 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module inside the event loop by custom integration 'asusrouter' at custom_components/asusrouter/bridge.py, line 272: raw = await self.api.async_get_data(datatype, force=force) (offender: /usr/local/lib/python3.12/site-packages/asusrouter/modules/endpoint/__init__.py, line 61: submodule = importlib.import_module(module_name)), please create a bug report at https://github.com/Vaskivskyi/ha-asusrouter/issues
2024-05-03 17:44:30.459 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module inside the event loop by custom integration 'asusrouter' at custom_components/asusrouter/bridge.py, line 272: raw = await self.api.async_get_data(datatype, force=force) (offender: /usr/local/lib/python3.12/site-packages/asusrouter/modules/endpoint/__init__.py, line 61: submodule = importlib.import_module(module_name)), please create a bug report at https://github.com/Vaskivskyi/ha-asusrouter/issues

Your device model

RT-AX86U

Firmware type

Merlin

Firmware version

3004.388.4

Integration version with the issue

v 0.31

Method of the integration installation

HACS

What version and type of Home Assistant installation do you use

2024.5.1

Is there anything useful in the logs?

if needed, will enable debug and resubmit logs upon request.

Diagnostics information

Provided only upon request

Additional information

No response

@GaryOkie GaryOkie added the bug Something isn't working label May 3, 2024
@github-project-automation github-project-automation bot moved this to Incoming in AsusRouter/HA May 3, 2024
@GaryOkie
Copy link
Author

GaryOkie commented May 5, 2024

possibly related - frenck/spook#722

@smarthomefamilyverrips
Copy link

Same here.

Logger: homeassistant.util.loop
Source: util/loop.py:99
First occurred: 13:22:24 (6 occurrences)
Last logged: 13:22:29

Detected blocking call to import_module inside the event loop by custom integration 'asusrouter' at custom_components/asusrouter/bridge.py, line 149: await self.api.async_connect() (offender: /usr/local/lib/python3.12/site-packages/asusrouter/modules/endpoint/init.py, line 61: submodule = importlib.import_module(module_name)), please create a bug report at https://github.com/Vaskivskyi/ha-asusrouter/issues
Detected blocking call to import_module inside the event loop by custom integration 'asusrouter' at custom_components/asusrouter/bridge.py, line 272: raw = await self.api.async_get_data(datatype, force=force) (offender: /usr/local/lib/python3.12/site-packages/asusrouter/modules/endpoint/init.py, line 61: submodule = importlib.import_module(module_name)), please create a bug report at https://github.com/Vaskivskyi/ha-asusrouter/issues
Detected blocking call to import_module inside the event loop by custom integration 'asusrouter' at custom_components/asusrouter/bridge.py, line 488: data = await self.api.async_get_data(datatype) (offender: /usr/local/lib/python3.12/site-packages/asusrouter/modules/endpoint/init.py, line 61: submodule = importlib.import_module(module_name)), please create a bug report at https://github.com/Vaskivskyi/ha-asusrouter/issues
Detected blocking call to import_module inside the event loop by custom integration 'asusrouter' at custom_components/asusrouter/bridge.py, line 512: data = await self.api.async_get_data(datatype) (offender: /usr/local/lib/python3.12/site-packages/asusrouter/modules/endpoint/init.py, line 61: submodule = importlib.import_module(module_name)), please create a bug report at https://github.com/Vaskivskyi/ha-asusrouter/issues

@sezlony
Copy link

sezlony commented May 8, 2024

1:

Detected blocking call to import_module inside the event loop by custom integration 'asusrouter' at custom_components/asusrouter/bridge.py, line 149: await self.api.async_connect() (offender: /usr/local/lib/python3.12/site-packages/asusrouter/modules/endpoint/__init__.py, line 61: submodule = importlib.import_module(module_name)), please create a bug report at https://github.com/Vaskivskyi/ha-asusrouter/issues
Detected blocking call to import_module inside the event loop by custom integration 'asusrouter' at custom_components/asusrouter/bridge.py, line 272: raw = await self.api.async_get_data(datatype, force=force) (offender: /usr/local/lib/python3.12/site-packages/asusrouter/modules/endpoint/__init__.py, line 61: submodule = importlib.import_module(module_name)), please create a bug report at https://github.com/Vaskivskyi/ha-asusrouter/issues
Detected blocking call to import_module inside the event loop by custom integration 'asusrouter' at custom_components/asusrouter/bridge.py, line 488: data = await self.api.async_get_data(datatype) (offender: /usr/local/lib/python3.12/site-packages/asusrouter/modules/endpoint/__init__.py, line 61: submodule = importlib.import_module(module_name)), please create a bug report at https://github.com/Vaskivskyi/ha-asusrouter/issues
Detected blocking call to import_module inside the event loop by custom integration 'asusrouter' at custom_components/asusrouter/bridge.py, line 512: data = await self.api.async_get_data(datatype) (offender: /usr/local/lib/python3.12/site-packages/asusrouter/modules/endpoint/__init__.py, line 61: submodule = importlib.import_module(module_name)), please create a bug report at https://github.com/Vaskivskyi/ha-asusrouter/issues

@Gugulator
Copy link

Gugulator commented May 9, 2024

have same issue in HA logs

Detected blocking call to import_module inside the event loop by custom integration 'asusrouter' at custom_components/asusrouter/bridge.py, line 149: await self.api.async_connect() (offender: /usr/local/lib/python3.12/site-packages/asusrouter/modules/endpoint/init.py, line 61: submodule = importlib.import_module(module_name)), please create a bug report at https://github.com/Vaskivskyi/ha-asusrouter/issues

Detected blocking call to import_module inside the event loop by custom integration 'asusrouter' at custom_components/asusrouter/bridge.py, line 272: raw = await self.api.async_get_data(datatype, force=force) (offender: /usr/local/lib/python3.12/site-packages/asusrouter/modules/endpoint/init.py, line 61: submodule = importlib.import_module(module_name)), please create a bug report at https://github.com/Vaskivskyi/ha-asusrouter/issues

Detected blocking call to import_module inside the event loop by custom integration 'asusrouter' at custom_components/asusrouter/bridge.py, line 512: data = await self.api.async_get_data(datatype) (offender: /usr/local/lib/python3.12/site-packages/asusrouter/modules/endpoint/init.py, line 61: submodule = importlib.import_module(module_name)), please create a bug report at https://github.com/Vaskivskyi/ha-asusrouter/issues

Detected blocking call to import_module inside the event loop by custom integration 'asusrouter' at custom_components/asusrouter/bridge.py, line 488: data = await self.api.async_get_data(datatype) (offender: /usr/local/lib/python3.12/site-packages/asusrouter/modules/endpoint/init.py, line 61: submodule = importlib.import_module(module_name)), please create a bug report at https://github.com/Vaskivskyi/ha-asusrouter/issues

@Vaskivskyi
Copy link
Owner

Hello, guys. Sorry for the late reply. Currently, I don't have any time to check GitHub regularly due to some personal reasons

The fix is ready and will be released either later today or tomorrow to remove the warning from HA logs

@Vaskivskyi Vaskivskyi moved this from Incoming to Done in AsusRouter/HA May 19, 2024
@Vaskivskyi
Copy link
Owner

The warning is fixed in 0.32.0 which is already available in HACS. Please, check it

@Vaskivskyi Vaskivskyi moved this from Done to Stable in AsusRouter/HA May 21, 2024
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
Status: Stable
Development

No branches or pull requests

5 participants