mirror of
https://github.com/home-assistant/core.git
synced 2025-07-07 13:27:09 +00:00
Import cryptography early since importing openssl is not thread-safe (#111768)
This commit is contained in:
parent
220e66faad
commit
61f6df527e
@ -14,6 +14,9 @@ import threading
|
||||
from time import monotonic
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
# Import cryptography early since import openssl is not thread-safe
|
||||
# _frozen_importlib._DeadlockError: deadlock detected by _ModuleLock('cryptography.hazmat.backends.openssl.backend')
|
||||
import cryptography # noqa: F401
|
||||
import voluptuous as vol
|
||||
import yarl
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user