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 by custom integration 'irm_kmi' #39

Closed
2 tasks
gieljnssns opened this issue May 31, 2024 · 1 comment · Fixed by #41
Closed
2 tasks
Assignees
Labels
bug Something isn't working

Comments

@gieljnssns
Copy link

Describe the bug
Warning s with the new HA beta

Checklist

  • I included debug logs or at least a screenshot of the IRM KMI official app
  • If I use a custom card, I checked if the stock Lovelace weather card is working

To Reproduce
Steps to reproduce the behavior:

  1. Update HA to 2024.6 beta

Expected behavior
No warnings
Screenshots
If applicable, add screenshots to help explain your problem.

Version

  • Home Assistant: [e.g. 2024.6.0b]
  • IRM KMI integration [e.g. 0.2.14]

Additional context

Detected blocking call to open inside the event loop by custom integration 'irm_kmi' at custom_components/irm_kmi/rain_graph.py, line 96: self._dwg.embed_font(name="Roboto Medium", filename=font_file) (offender: /usr/local/lib/python3.12/site-packages/svgwrite/container.py, line 150: data = open(filename, 'rb').read()), please create a bug report at https://github.com/jdejaegh/irm-kmi-ha/issues
Detected blocking call to open inside the event loop by custom integration 'irm_kmi' at custom_components/irm_kmi/rain_graph.py, line 304: with open(bg_image_path, 'rb') as f: (offender: /config/custom_components/irm_kmi/rain_graph.py, line 304: with open(bg_image_path, 'rb') as f:), please create a bug report at https://github.com/jdejaegh/irm-kmi-ha/issues
@gieljnssns gieljnssns added the bug Something isn't working label May 31, 2024
@jdejaegh jdejaegh self-assigned this May 31, 2024
@jdejaegh jdejaegh linked a pull request Jun 1, 2024 that will close this issue
@jdejaegh
Copy link
Owner

jdejaegh commented Jun 1, 2024

This has been fixed in version 0.2.15
However, some async variants of the blocking calls are only available in Home Assistant 2024.6 so Home Assistant needs to be at least 2024.6 (the beta versions work as well).

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

Successfully merging a pull request may close this issue.

2 participants