Home Assistant: warn when deprecated 'token' parameter is used (#31876)
This commit is contained in:
parent
661af417a1
commit
e77fb6071a
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue