Add Safe Mode (#30723)

* Store last working HTTP settings

* Add safe mode

* Fix tests

* Add cloud to safe mode

* Update logging text

* Fix camera tests leaving files behind

* Make emulated_hue tests not leave files behind

* Make logbook tests not leave files behind

* Make tts tests not leave files behind

* Make image_processing tests not leave files behind

* Make manual_mqtt tests not leave files behind
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2020-01-14 13:03:02 -08:00
1 parent c4673ddee1
commit 5fdc60e067
35 files changed
+480 -430

No files matched your search

+4 -3
View File
@@ -32,13 +32,14 @@ def run(args):
os.makedirs(config_dir)
hass = HomeAssistant()
config_path = hass.loop.run_until_complete(async_run(hass, config_dir))
hass.config.config_dir = config_dir
config_path = hass.loop.run_until_complete(async_run(hass))
print("Configuration file:", config_path)
return 0
async def async_run(hass, config_dir):
async def async_run(hass):
"""Make sure config exists."""
path = await config_util.async_ensure_config_exists(hass, config_dir)
path = await config_util.async_ensure_config_exists(hass)
await hass.async_stop(force=True)
return path