Thread safety fix
Fixes hass.async_create_task from a thread other than the event loop and "Future exception was never retrieved" errors when forwarding high-volume events (e.g. state_changed).
Changes
- Async bus listeners — event handlers run on the HA event loop (sync listeners run in a thread pool on recent HA versions)
- Thread-safe enqueue —
enqueue_log/enqueue_eventusecall_soon_threadsafewhen called off-loop - Debounced batch flush — batch-triggered flushes scheduled safely via the event loop
Upgrade
Update via HACS or copy custom_components/openobserve/ and restart Home Assistant.
Full changelog: https://github.com/Shaffer-Softworks/Openobserve/blob/main/CHANGELOG.md