mirror of https://github.com/home-assistant/core
Import recorder and common recorder platforms before asyncio starts (#112131)
This commit is contained in:
parent
c13231fc00
commit
40c0b4caf0
|
@ -34,11 +34,14 @@ from .components import (
|
|||
device_automation as device_automation_pre_import, # noqa: F401
|
||||
diagnostics as diagnostics_pre_import, # noqa: F401
|
||||
file_upload as file_upload_pre_import, # noqa: F401
|
||||
http,
|
||||
history as history_pre_import, # noqa: F401
|
||||
http, # not named pre_import since it has requirements
|
||||
lovelace as lovelace_pre_import, # noqa: F401
|
||||
onboarding as onboarding_pre_import, # noqa: F401
|
||||
recorder as recorder_import, # noqa: F401 - not named pre_import since it has requirements
|
||||
repairs as repairs_pre_import, # noqa: F401
|
||||
search as search_pre_import, # noqa: F401
|
||||
sensor as sensor_pre_import, # noqa: F401
|
||||
system_log as system_log_pre_import, # noqa: F401
|
||||
websocket_api as websocket_api_pre_import, # noqa: F401
|
||||
)
|
||||
|
|
|
@ -35,6 +35,7 @@ dependencies = [
|
|||
"bcrypt==4.1.2",
|
||||
"certifi>=2021.5.30",
|
||||
"ciso8601==2.3.1",
|
||||
"fnv-hash-fast==0.5.0",
|
||||
# When bumping httpx, please check the version pins of
|
||||
# httpcore, anyio, and h11 in gen_requirements_all
|
||||
"httpx==0.27.0",
|
||||
|
@ -50,9 +51,11 @@ dependencies = [
|
|||
"orjson==3.9.15",
|
||||
"packaging>=23.1",
|
||||
"pip>=21.3.1",
|
||||
"psutil-home-assistant==0.0.1",
|
||||
"python-slugify==8.0.4",
|
||||
"PyYAML==6.0.1",
|
||||
"requests==2.31.0",
|
||||
"SQLAlchemy==2.0.27",
|
||||
"typing-extensions>=4.10.0,<5.0",
|
||||
"ulid-transform==0.9.0",
|
||||
# Constrain urllib3 to ensure we deal with CVE-2020-26137 and CVE-2021-33503
|
||||
|
|
|
@ -15,6 +15,7 @@ awesomeversion==24.2.0
|
|||
bcrypt==4.1.2
|
||||
certifi>=2021.5.30
|
||||
ciso8601==2.3.1
|
||||
fnv-hash-fast==0.5.0
|
||||
httpx==0.27.0
|
||||
home-assistant-bluetooth==1.12.0
|
||||
ifaddr==0.2.0
|
||||
|
@ -26,9 +27,11 @@ pyOpenSSL==24.0.0
|
|||
orjson==3.9.15
|
||||
packaging>=23.1
|
||||
pip>=21.3.1
|
||||
psutil-home-assistant==0.0.1
|
||||
python-slugify==8.0.4
|
||||
PyYAML==6.0.1
|
||||
requests==2.31.0
|
||||
SQLAlchemy==2.0.27
|
||||
typing-extensions>=4.10.0,<5.0
|
||||
ulid-transform==0.9.0
|
||||
urllib3>=1.26.5,<2
|
||||
|
|
|
@ -1026,8 +1026,8 @@ async def test_bootstrap_dependencies(
|
|||
)
|
||||
|
||||
|
||||
async def test_frontend_deps_pre_import_no_requirements(hass: HomeAssistant) -> None:
|
||||
"""Test frontend dependencies are pre-imported and do not have any requirements."""
|
||||
async def test_pre_import_no_requirements(hass: HomeAssistant) -> None:
|
||||
"""Test pre-imported and do not have any requirements."""
|
||||
pre_imports = [
|
||||
name.removesuffix("_pre_import")
|
||||
for name in dir(bootstrap)
|
||||
|
|
Loading…
Reference in New Issue