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 warnings in 2023.7.0b2 #137

Closed
dummylabs opened this issue Jun 27, 2024 · 5 comments
Closed

Detected blocking call warnings in 2023.7.0b2 #137

dummylabs opened this issue Jun 27, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@dummylabs
Copy link
Owner

New beta version of HA gives warning messages in the log again. Previous warnings were fixed in #135, those are introduced in 2023.7:

2024-06-27 06:01:55.040 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to iglob with args ('/config/**/*.yaml',) inside the event loop by custom integration 'watchman' at custom_components/watchman/utils.py, line 160: for filename in glob.iglob(folder, recursive=True): (offender: /workspaces/thewatchman/custom_components/watchman/utils.py, line 160: for filename in glob.iglob(folder, recursive=True):), please create a bug report at https://github.com/dummylabs/thewatchman/issues
For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#iglob
2024-06-27 06:01:55.044 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to scandir with args ('/config',) inside the event loop by custom integration 'watchman' at custom_components/watchman/utils.py, line 160: for filename in glob.iglob(folder, recursive=True): (offender: /usr/local/lib/python3.12/glob.py, line 160: with os.scandir(arg) as it:), please create a bug report at https://github.com/dummylabs/thewatchman/issues
For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#scandir
@dummylabs dummylabs self-assigned this Jun 27, 2024
@dummylabs dummylabs added the bug Something isn't working label Jun 27, 2024
dummylabs added a commit that referenced this issue Jun 27, 2024
@dummylabs
Copy link
Owner Author

Fixed code is in the main branch, will be added to the next release. Meanwhile it is available in HACS (Redownload->Show beta versions->main).

@Mariusthvdb
Copy link
Contributor

ws just about to open an issue, and you beat us to it. cool!
thanks for being fast!

@johntdyer
Copy link

So not sure why but it wont allow me to download main any more, it keeps defaulting back to 0.6.2...

@Mariusthvdb
Copy link
Contributor

Yes that is a Hacs issue I filed already at hacs

dev said it will be fixed in new update. For now, just download manually

@dummylabs
Copy link
Owner Author

Fixed in 0.6.3

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