Closed tomlut closed 3 weeks ago
This line needs to run in the executor https://github.com/koush/ha_scrypted/blob/9d77a18a1575d6e89c9eb6a2a12e13973f4360bd/custom_components/scrypted/http.py#L127
fixed
Calling set_result on a future in another thread is not thread safe and will likely cause Home Assistant to crash. Please see https://developers.home-assistant.io/docs/asyncio_thread_safety
Please see this guide on fixing the open calls, specifically use hass.async_add_executor_job
https://developers.home-assistant.io/docs/asyncio_blocking_operations
Home assistant is reporting this warning for the Scrypted Integration:
Home Assistant OS Core 2024.6.4