#Hello everyone. I have been away from
1 messages · Page 1 of 1 (latest)
Only thing that pops in my mind would be https://developers.home-assistant.io/blog/2024/03/09/import_executor_default but to my understanding that should first happen with 2024.4
Thank you, I will test tomorrow. 🙂
The integration is trying to call the async_add_entities callback from another thread which is a non-threadsafe operation. Its bombing out now because its trying to fetch the loop to start the task. The callback needs to be called from the event loop
Importing in the loop won't fix the issue, its only showing up now because we didn't use to fetch the loop when creating the task so you wouldn't have seen the problem unless you had asyncio debug turned on to prevent you from doing the non-threadsafe operation