-
-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
Detected blocking call to open inside the event loop by integration 'brother'/snmp
#117601
Comments
Hey there @bieniu, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) brother documentation |
Looks like snmp has the same issue |
Hey there @nmaggioni, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) snmp documentation |
|
snmp
Issue is in pysnmp-lextudio. Likely been a problem for a while, but went undetected |
I had downgraded to confirm this was not in 2024.5.x, and then updated again to 2024.6 dev nightly and see another Logger: homeassistant.util.loop Detected blocking call to open with args ('/usr/local/lib/python3.12/site-packages/botocore/data/cognito-idp/2016-04-18/service-2.json.gz', 'rb') in /usr/local/lib/python3.12/gzip.py, line 192: fileobj = self.myfileobj = builtins.open(filename, mode or 'rb') inside the event loop Detected blocking call to open with args ('/usr/local/lib/python3.12/site-packages/botocore/data/cognito-idp/2016-04-18/endpoint-rule-set-1.json.gz', 'rb') in /usr/local/lib/python3.12/gzip.py, line 192: fileobj = self.myfileobj = builtins.open(filename, mode or 'rb') inside the event loop Detected blocking call to open with args ('/usr/local/lib/python3.12/site-packages/pysnmp/smi/mibs/instances/__SNMPv2-MIB.py', 'r') in /usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py, line 256: fp = open(p, mode) inside the event loop |
The library code hasn't changed, and the problem has existed for a long time with these libraries. Home Assistant's ability to detect these type of problems is what is new in dev. |
Might be the same as this one? #118426 |
The problem
Errors appearing in logs for Brother integration
Logger: homeassistant.util.loop
Source: util/loop.py:90
First occurred: 5:18:41 PM (19 occurrences)
Last logged: 5:18:53 PM
Detected blocking call to open inside the event loop by integration 'brother' at homeassistant/components/brother/utils.py, line 23: snmp_engine = hlapi.SnmpEngine() (offender: /usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py, line 256: fp = open(p, mode))
Detected blocking call to open inside the event loop by integration 'brother' at homeassistant/components/brother/init.py, line 28: brother = await Brother.create( (offender: /usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py, line 256: fp = open(p, mode))
What version of Home Assistant Core has the issue?
core-2024.6.0.dev202405160217
What was the last working version of Home Assistant Core?
core-2024.5.3
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Brother
Link to integration documentation on our website
https://www.home-assistant.io/integrations/brother/
Diagnostics information
config_entry-brother-637cdaeb8d12d276c566534e29537cd1.json
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No noticeable issues with device or sensors itself.
The text was updated successfully, but these errors were encountered: