1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Add internal/external url to safe mode (#36894)

This commit is contained in:
Paulus Schoutsen
2020-06-17 17:14:48 -07:00
committed by GitHub
parent 7920c5e5e8
commit 94132e5572
2 changed files with 22 additions and 2 deletions

View File

@@ -124,8 +124,12 @@ async def async_setup_hass(
await hass.async_block_till_done()
safe_mode = True
old_config = hass.config
hass = core.HomeAssistant()
hass.config.config_dir = config_dir
hass.config.skip_pip = old_config.skip_pip
hass.config.internal_url = old_config.internal_url
hass.config.external_url = old_config.external_url
hass.config.config_dir = old_config.config_dir
if safe_mode:
_LOGGER.info("Starting in safe mode")