diff --git a/docs/asyncio_blocking_operations.md b/docs/asyncio_blocking_operations.md index d581af27..348348ec 100644 --- a/docs/asyncio_blocking_operations.md +++ b/docs/asyncio_blocking_operations.md @@ -94,3 +94,17 @@ urllib does blocking I/O and should be run in the executor with the standard met #### stat `os.stat` does blocking disk I/O and should be run in the executor with the standard methods above. + +#### load_default_certs + +`SSLContext.load_default_certs` does blocking disk I/O to load the certificates from disk. + +The following helpers ensure that the blocking I/O will happen in the executor: + +- `aiohttp`: `homeassistant.helpers.aiohttp_client.async_get_clientsession` to create the `aiohttp.ClientSession`. +- `httpx`: `homeassistant.helpers.httpx_client.get_async_client` to create the `httpx.AsyncClient`. +- Generic SSL: `homeassistant.util.ssl` + +#### load_verify_locations + +See [load_default_certs](#load_default_certs)