Home Assistant: warn when deprecated 'token' parameter is used (#31876)

This commit is contained in:
github-actions[bot] 2026-07-17 15:13:39 +00:00 • committed by GitHub
parent 661af417a1
commit e77fb6071a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,5 +13,9 @@ type Config struct {
// NewConnection creates a Home Assistant connection from the config
func (c Config) NewConnection(log *util.Logger) (*Connection, error) {
if c.Token_ != "" {
log.WARN.Println("using deprecated 'token' parameter, it is no longer used for authentication - please authorize the Home Assistant instance via the web UI instead")
}
return NewConnection(log, c.URI, c.Home_, c.Insecure)
}