v1.0.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
- 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