mirror of
https://github.com/home-assistant/core.git
synced 2026-09-14 18:25:47 -05:00
Import cryptography early since importing openssl is not thread-safe (#111768)
This commit is contained in:
committed by
Paulus Schoutsen
parent
cb7116126c
commit
db584857c8
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user