From b213dce11f63668536b4b6c4a858f7ba2dac007c Mon Sep 17 00:00:00 2001 From: Jordan Hotmann Date: Mon, 27 Nov 2023 16:54:15 -0700 Subject: [PATCH] Fix secure variable ref --- pkg/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 84a6625..4f36e38 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -80,7 +80,7 @@ func (c *HatsConfig) GetNatsBaseUrl() string { func (c *HatsConfig) GetHatsBaseUrl() string { protocol := "http" - if c.HomeAssistantSecure { + if c.HatsSecure { protocol += "s" } return fmt.Sprintf("%s://%s:%s", protocol, c.HatsHost, c.HatsPort)