Add asyncio thread safety docs

This commit is contained in:
J. Nick Koston 2024-05-14 09:47:06 +09:00
parent aea468c8aa
commit ed0f641c38
No known key found for this signature in database

View File

@ -10,7 +10,7 @@ Be sure to enable [`asyncio` debug mode](https://docs.python.org/3/library/async
## Solving thread safety errors
You may have reached this page because Home Assistant detected and reported a thread safety error. Beginning in version 2024.5.0, Home Assistant can detect, report, and block some non-threaded operations to prevent system instability. Before the Home Assistant could detect these errors, they may have led to unexpected restarts or undefined behaviors, as they can corrupt the internal asyncio state. Below are some tips on how to correct non-threaded operations.
You may have reached this page because Home Assistant detected and reported a thread safety error. Beginning in version 2024.5.0, Home Assistant can detect, report, and block some non-threaded operations to prevent system instability. Before Home Assistant could detect these errors, they may have led to unexpected restarts or undefined behaviors, as they can corrupt the internal asyncio state. Below are some tips on how to correct non-threaded operations.
### hass.async_create_task