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

Blocking call to open inside the event loop #130

Closed
illuzn opened this issue Jul 3, 2024 · 2 comments
Closed

Blocking call to open inside the event loop #130

illuzn opened this issue Jul 3, 2024 · 2 comments

Comments

@illuzn
Copy link
Contributor

illuzn commented Jul 3, 2024

Version of the custom_component

0.7.3

Configuration

Not Applicable

Describe the bug

Can be fixed by a similar fix to #123. Similar Issue to #127.

When HA tries to restore entities it reaches this open call:

with open(path, "r") as src_file:

Debug log

2024-07-03 18:24:41.528 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'openhasp' at custom_components/openhasp/__init__.py, line 353: with open( (offender: /config/custom_components/openhasp/__init__.py, line 353: with open(), please create a bug report at https://github.com/HASwitchPlate/openHASP-custom-component/issues
@illuzn illuzn changed the title Block call to open inside the event loop Blocking call to open inside the event loop Jul 3, 2024
@dgomes
Copy link
Collaborator

dgomes commented Jul 3, 2024

this is literally the fix introduced in #123 it was supposed to have fixed :(

@illuzn
Copy link
Contributor Author

illuzn commented Jul 12, 2024

This has disappeared in 2024.7.2 and I redownloaded the component a few times since.

Assume this was some bug/ error caused by me because I can no longer reproduce. Will open a new issue if it arises again.

@illuzn illuzn closed this as completed Jul 12, 2024
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

No branches or pull requests

2 participants