Skip to content

V1.2.4 πŸ› Bug Fix: Event Loop Blocking Resolved

Choose a tag to compare

@brouwerict brouwerict released this 15 Nov 07:54
· 5 commits to main since this release

πŸ› Bug Fix: Event Loop Blocking Resolved

Fixes critical Home Assistant stability issue where the integration blocked the event loop during initialization.

What's Fixed

Event Loop Blocking Warning βœ…

  • Deferred heavy library imports (openai, python-open-router) to async functions
  • Eliminated blocking import warnings in Home Assistant logs
  • Improved startup performance and system stability

Technical Changes

  • __init__.py: Moved openai imports to async_setup_entry()
  • entity.py: All openai types under TYPE_CHECKING, runtime imports in functions
  • config_flow.py: python_open_router imports deferred to async methods

Upgrade Notes

  • βœ… Fully backward compatible - no configuration changes needed
  • βœ… All features from v1.2.3 preserved
  • βœ… Faster Home Assistant startup
  • βœ… No more blocking warnings

Installation

Update via HACS or manually, then restart Home Assistant.

Full release notes:
RELEASE_NOTES_v1.2.4.md


Recommendation: All users should upgrade to eliminate event loop blocking and improve HA stability.