From 737681aa4f50d6ba3d5246d6e3ff394381aecc72 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Fri, 1 Sep 2023 06:06:22 -0600 Subject: [PATCH] Add default hass location (#7549) --- docker/main/rootfs/usr/local/go2rtc/create_config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/main/rootfs/usr/local/go2rtc/create_config.py b/docker/main/rootfs/usr/local/go2rtc/create_config.py index 790d90100..aefed5f83 100644 --- a/docker/main/rootfs/usr/local/go2rtc/create_config.py +++ b/docker/main/rootfs/usr/local/go2rtc/create_config.py @@ -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"}