parent
369bdd8f2b
commit
b213dce11f
|
@ -80,7 +80,7 @@ func (c *HatsConfig) GetNatsBaseUrl() string {
|
||||||
|
|
||||||
func (c *HatsConfig) GetHatsBaseUrl() string {
|
func (c *HatsConfig) GetHatsBaseUrl() string {
|
||||||
protocol := "http"
|
protocol := "http"
|
||||||
if c.HomeAssistantSecure {
|
if c.HatsSecure {
|
||||||
protocol += "s"
|
protocol += "s"
|
||||||
}
|
}
|
||||||
return fmt.Sprintf("%s://%s:%s", protocol, c.HatsHost, c.HatsPort)
|
return fmt.Sprintf("%s://%s:%s", protocol, c.HatsHost, c.HatsPort)
|
||||||
|
|
Loading…
Reference in New Issue