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

[Bug]: Detected blocking call to import_module inside the event loop by custom integration 'solax_modbus' #876

Closed
wills106 opened this issue May 2, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@wills106
Copy link
Owner

wills106 commented May 2, 2024

Describe the bug

Detected blocking call to import_module inside the event loop by custom integration 'solax_modbus'

Relates to this PR home-assistant/core#114488

Integration Version

Probably all

Homeassistant core version

2024.5.0

Inverter brand

All

Plugin used

plugin_solax.py

Serial prefix

H1E5

Inverter firmware versions

ARM 3.28, DSP 3.32

Connection Method

Gen3 Ethernet

Dongle firmware

N/A

Detailed Error Log

2024-05-02 07:52:18.574 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module inside the event loop by custom integration 'solax_modbus' at custom_components/solax_modbus/__init__.py, line 143: plugin = importlib.import_module( (offender: /config/custom_components/solax_modbus/__init__.py, line 143: plugin = importlib.import_module(), please create a bug report at https://github.com/wills106/homsassistant-solax-modbus/issues

Additional context

Doesn't seem to break anything at the moment and it's just a warning.

Will look into a fix

@wills106 wills106 added the bug Something isn't working label May 2, 2024
@PatrikTrestik
Copy link
Contributor

Will look on it next week.

@pickeringar
Copy link

pickeringar commented May 11, 2024

Also seeing this:
Logger: homeassistant.util.loop
Source: util/loop.py:99
First occurred: 10 May 2024 at 21:49:43 (1 occurrences)
Last logged: 10 May 2024 at 21:49:43
Detected blocking call to import_module inside the event loop by custom integration 'solax_modbus' at custom_components/solax_modbus/init.py, line 142: plugin = importlib.import_module( (offender: /config/custom_components/solax_modbus/init.py, line 142: plugin = importlib.import_module(), please create a bug report at https://github.com/wills106/homsassistant-solax-modbus/issues

Solax Plugin 2024.04.3
Inverter X1 Hybrid G3
Serial Prefix H1E5
Ethernet connected
Solax ARM 3.35
Solax DSP 3.42

Rpi 4
HA Core 2024.05.3
Supervisor 2024.05.1
Operating system 12.3

@PatrikTrestik
Copy link
Contributor

Solved by #890

@wills106
Copy link
Owner Author

Just released 2024.05.4b1 with the change.

I'll release a full version soon.

@wills106
Copy link
Owner Author

Released 2024.05.4

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
None yet
Development

No branches or pull requests

3 participants