diff --git a/integrations/inputunifi/input.go b/integrations/inputunifi/input.go index eed83031..dc97acf5 100644 --- a/integrations/inputunifi/input.go +++ b/integrations/inputunifi/input.go @@ -173,7 +173,7 @@ func (u *InputUnifi) setDefaults(c *Controller, useDefaults bool) { c.URL = defaultURL } - if c.Role == "" { + if c.Role == defaultURL { c.Role = c.URL }