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

Only check frontend for safe mode if frontend wanted to be loa… (#31969)

* Only check frontend for safe mode if frontend wanted to be loaded

* Update test
This commit is contained in:
Paulus Schoutsen
2020-02-19 06:56:46 -08:00
committed by GitHub
parent 8255bdf3d5
commit 4e765398cc
2 changed files with 7 additions and 3 deletions

View File

@@ -400,7 +400,8 @@ async def test_setup_safe_mode_if_no_frontend(
log_no_color = Mock()
with patch(
"homeassistant.config.async_hass_config_yaml", return_value={"browser": {}}
"homeassistant.config.async_hass_config_yaml",
return_value={"map": {}, "person": {"invalid": True}},
):
hass = await bootstrap.async_setup_hass(
config_dir=get_test_config_dir(),