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

Detected blocking call to open inside the event loop #44

Closed
SeanPM5 opened this issue May 31, 2024 · 5 comments · Fixed by #47
Closed

Detected blocking call to open inside the event loop #44

SeanPM5 opened this issue May 31, 2024 · 5 comments · Fixed by #47

Comments

@SeanPM5
Copy link

SeanPM5 commented May 31, 2024

Get warnings in log related to ChargePoint integration after updating to Home Assistant 2024.6 (in beta now), with recommendation to report issue. So here it is:

Logger: homeassistant.util.loop
Source: util/loop.py:81
First occurred: May 30, 2024 at 11:29:09 PM (56 occurrences)
Last logged: 1:33:45 AM

Detected blocking call to open inside the event loop by custom integration 'chargepoint' at custom_components/chargepoint/__init__.py, line 80: with open(file, "r") as spf: (offender: /config/custom_components/chargepoint/__init__.py, line 80: with open(file, "r") as spf:), please create a bug report at https://github.com/mbillow/ha-chargepoint/issues

Detected blocking call to open inside the event loop by custom integration 'chargepoint' at custom_components/chargepoint/__init__.py, line 64: with open(file, "r") as spf: (offender: /config/custom_components/chargepoint/__init__.py, line 64: with open(file, "r") as spf:), please create a bug report at https://github.com/mbillow/ha-chargepoint/issues

Detected blocking call to open inside the event loop by custom integration 'chargepoint' at custom_components/chargepoint/__init__.py, line 71: with open(os.open(file, os.O_CREAT | os.O_WRONLY, 0o600), "w") as spf: (offender: /config/custom_components/chargepoint/__init__.py, line 71: with open(os.open(file, os.O_CREAT | os.O_WRONLY, 0o600), "w") as spf:), please create a bug report at https://github.com/mbillow/ha-chargepoint/issues
@julio8a
Copy link

julio8a commented Jun 19, 2024

I'm getting the same. My 60+ devices using MQTT were not working because of this integration so had to temporarily disabled until there's a fix.


2024-06-18 15:15:28.159 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'chargepoint' at custom_components/chargepoint/__init__.py, line 71: with open(os.open(file, os.O_CREAT | os.O_WRONLY, 0o600), "w") as spf: (offender: /config/custom_components/chargepoint/__init__.py, line 71: with open(os.open(file, os.O_CREAT | os.O_WRONLY, 0o600), "w") as spf:), please create a bug report at https://github.com/mbillow/ha-chargepoint/issues

@flavio-fernandes
Copy link

/cc @flavio-fernandes

@julio8a
Copy link

julio8a commented Jun 23, 2024

Cc @mbillow

@mbillow
Copy link
Owner

mbillow commented Jun 23, 2024

Happy to review/release PRs if someone wants to fix this. Otherwise, it might be a bit before I have the time to look.

@mbillow
Copy link
Owner

mbillow commented Aug 30, 2024

I've released ha-chargepoint v0.8.0 to address this warning. Please update and report back if you have any more issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants