Skip to content

v1.0.1

Choose a tag to compare

@rrwood rrwood released this 16 Jan 07:39
· 6 commits to main since this release
  1. Lazy Protobuf Loading

Changed from importing protobuf at module load time to lazy loading
Protobuf is now only imported when first actually used
Uses _get_protobuf() function that caches the import

  1. Import Location

Moved from .esp_local_control import ESPLocalDevice inside async_setup_entry()
This is a lazy import that happens during setup, not module load
Prevents blocking the main event loop during Home Assistant startup

Why This Fixes the Warning:
The warning occurred because:

Home Assistant was loading all integrations during startup
Protobuf imports are heavy (lots of code generation)
This was blocking the async event loop
Home Assistant's new detection caught this

Now:

✅ Protobuf only loads when the integration is actually used
✅ No blocking during Home Assistant startup
✅ Better performance for users who have the integration installed but disabled
✅ Follows Home Assistant best practices