-
-
Notifications
You must be signed in to change notification settings - Fork 80
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 #379
Comments
This is listed as No2 for Known Issues and a workaround. |
Sorry, didn't see that section. Thanks for the hint. However, would it make sense to remove that blocking call? |
There aren't any active developers connecting over Serial / RS485-USB. My Inverter has built in Ethernet, so I have never had a need to connect with an RS485 - USB adaptor. |
So, now there are ;-) Will play around with the code and see if I find a fix for that... |
Any joy with improving the Serial connection part of the Integration? |
Unfortunately I had no time to do some work for that... |
I just briefly looked at the code - the thing is that (at least) methods |
I´m experiencing the same problem. Hope there is a fix for it. Blows me up my logs :/ 2023-11-11 11:31:17.657 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call to sleep inside the event loop by custom integration 'solax_modbus' at custom_components/solax_modbus/init.py, line 350: return self.client.read_input_registers(address, count, **kwargs), please create a bug report at https://github.com/wills106/homsassistant-solax-modbus/issues running on Core 2023.11.2 |
There is a link to a workaround on the second post of this issue. |
Hi there, I did the insert the fix some day´s ago, several restart later, but it didn't worked for me. My logfile´s are still blown up because of: 2023-11-21 19:31:35.736 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call to sleep inside the event loop by custom integration 'solax_modbus' at custom_components/solax_modbus/init.py, line 344: return self.client.read_holding_registers(address, count, **kwargs), please create a bug report at https://github.com/wills106/homsassistant-solax-modbus/issues |
Closing down as no active developers to look at correcting the Modbus Serial code. |
I have just released 2024.02.6b4 does the work @Zwer2k has done on the async reard / writes prevent the need to hide the blocking call warnings? Edit: Changed to 2024.02.6b4 |
Seems like working well for me. Can´t see any blocking calls unto the last running 4 hours THX |
Just released 2024.02.6 so closing this issue down again. |
Tested the released version and it works perfectly without any need to configure logging. Thanks! |
Describe the bug
In the log there are a lot of entries reporting a blocking interface call.
Mandatory details
Detailed Error Log
In the log, I see a lot of entries like this one:
2023-04-11 17:21:07.709 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call to sleep inside the event loop. This is causing stability issues. Please report issue to the custom integration author for solax_modbus doing blocking calls at custom_components/solax_modbus/__init__.py, line 318: return self._client.read_holding_registers(address, count, **kwargs)
Additional context
None
The text was updated successfully, but these errors were encountered: