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

fix: warning for blocking event loop when downloading backups #169

Merged
merged 5 commits into from
Jan 6, 2025

Conversation

Doorshifter
Copy link
Contributor

  • Resolved Home Assistant warning about blocking file operations in the auto_backup integration (Home Assistant warning message in log #145).
  • Updated handlers.py to replace synchronous open calls with aiofiles.open for non-blocking file writes.
  • Improved compatibility with Home Assistant's asyncio architecture, preventing event loop warnings.
  • Verified changes to ensure integration functionality remains intact.

- Resolved Home Assistant warning about blocking file operations in the `auto_backup` integration (jcwillox#145).
- Updated `handlers.py` to replace synchronous `open` calls with `aiofiles.open` for non-blocking file writes.
- Improved compatibility with Home Assistant's asyncio architecture, preventing event loop warnings.
- Verified changes to ensure integration functionality remains intact.
custom_components/.DS_Store Outdated Show resolved Hide resolved
@jcwillox
Copy link
Owner

jcwillox commented Jan 5, 2025

Looks good, should be a nice improvement 👍

@jcwillox jcwillox linked an issue Jan 5, 2025 that may be closed by this pull request
@jcwillox jcwillox changed the title Fix: Address blocking file operation in log (#145) fix: warning for blocking event loop when downloading backups Jan 6, 2025
@jcwillox jcwillox merged commit be30743 into jcwillox:main Jan 6, 2025
3 checks passed
Copy link

github-actions bot commented Jan 6, 2025

🎉 This PR is included in version 1.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Home Assistant warning message in log
2 participants