In 2024.5.x we will introduce a debug mode that can catch many non-thread-safe operations. Coupled with turning on asyncio debug mode this will catch ~90% of threading implementation errors in integrations
If you have an integration blocking the event loop or doing non-thread-safe operations:
- Install profiler integration Link to Integrations: add integration – My Home Assistant
- Enable asyncio debug service as soon as possible after startup Profiler - Home Assistant
- Watch logs for RuntimeError: Non-thread-safe operation and long asyncio delays
- Download and post logs with full trace
For 2024.5.x and later Home Assistant debug mode can also be enabled in configuration.yaml
homeassistant:
debug: true