Split recorder and frontend bootstrap steps (#122420)

This commit is contained in:
Erik Montnemery 2024-07-22 23:07:49 +02:00 committed by GitHub
parent ee30510b23
commit 3df6b34a03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 6 deletions

View file

@ -223,8 +223,10 @@ CRITICAL_INTEGRATIONS = {
SETUP_ORDER = ( SETUP_ORDER = (
# Load logging and http deps as soon as possible # Load logging and http deps as soon as possible
("logging, http deps", LOGGING_AND_HTTP_DEPS_INTEGRATIONS), ("logging, http deps", LOGGING_AND_HTTP_DEPS_INTEGRATIONS),
# Setup frontend and recorder # Setup frontend
("frontend, recorder", {*FRONTEND_INTEGRATIONS, *RECORDER_INTEGRATIONS}), ("frontend", FRONTEND_INTEGRATIONS),
# Setup recorder
("recorder", RECORDER_INTEGRATIONS),
# Start up debuggers. Start these first in case they want to wait. # Start up debuggers. Start these first in case they want to wait.
("debugger", DEBUGGER_INTEGRATIONS), ("debugger", DEBUGGER_INTEGRATIONS),
) )

View file

@ -1,7 +1,6 @@
{ {
"domain": "recorder", "domain": "recorder",
"name": "Recorder", "name": "Recorder",
"after_dependencies": ["http"],
"codeowners": ["@home-assistant/core"], "codeowners": ["@home-assistant/core"],
"documentation": "https://www.home-assistant.io/integrations/recorder", "documentation": "https://www.home-assistant.io/integrations/recorder",
"integration_type": "system", "integration_type": "system",

View file

@ -436,9 +436,6 @@ async def test_setup_frontend_before_recorder(hass: HomeAssistant) -> None:
MockModule( MockModule(
domain="recorder", domain="recorder",
async_setup=gen_domain_setup("recorder"), async_setup=gen_domain_setup("recorder"),
partial_manifest={
"after_dependencies": ["http"],
},
), ),
) )