Add default hass location

This commit is contained in:
Nick Mowen 2023-08-22 05:52:06 -06:00
parent 3921a7faa2
commit 051131afd5

View File

@ -39,6 +39,10 @@ if go2rtc_config.get("api") is None:
elif go2rtc_config["api"].get("origin") is None:
go2rtc_config["api"]["origin"] = "*"
# Need to set default location for HA config
if go2rtc_config.get("hass") is None:
go2rtc_config["hass"] = {"config": "/config"}
# we want to ensure that logs are easy to read
if go2rtc_config.get("log") is None:
go2rtc_config["log"] = {"format": "text"}