Revert "Ensure frontend is available if integrations fail to start - Part 1 of 2 (#36093)" (#36251)

This reverts commit fbe7b4ddfa.
This commit is contained in:
Pascal Vizeli authored and GitHub committed 2020-05-29 10:18:39 +02:00
1 parent 08f2714e57
commit ed014e3c96
13 files changed
+63 -173

No files matched your search

+1 -20
View File
@@ -29,9 +29,6 @@ _LOGGER = logging.getLogger(__name__)
ERROR_LOG_FILENAME = "home-assistant.log"
# How long to wait until things that run on bootstrap have to finish.
TIMEOUT_EVENT_BOOTSTRAP = 15
# hass.data key for logging information.
DATA_LOGGING = "logging"
@@ -47,13 +44,6 @@ STAGE_1_INTEGRATIONS = {
"mqtt_eventstream",
# To provide account link implementations
"cloud",
# Ensure supervisor is available
"hassio",
# Get the frontend up and running as soon
# as possible so problem integrations can
# be removed
"frontend",
"config",
}
@@ -409,8 +399,6 @@ async def _async_set_up_integrations(
)
if stage_1_domains:
_LOGGER.info("Setting up %s", stage_1_domains)
await async_setup_multi_components(stage_1_domains)
# Load all integrations
@@ -454,11 +442,4 @@ async def _async_set_up_integrations(
# Wrap up startup
_LOGGER.debug("Waiting for startup to wrap up")
try:
async with timeout(TIMEOUT_EVENT_BOOTSTRAP):
await hass.async_block_till_done()
except asyncio.TimeoutError:
_LOGGER.warning(
"Something is blocking Home Assistant from wrapping up the "
"bootstrap phase. We're going to continue anyway."
)
await hass.async_block_till_done()