From e77fb6071a9a432f245d21a1e427f2b544409d97 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 17 Jul 2026 15:13:39 +0000 Subject: [PATCH] Home Assistant: warn when deprecated 'token' parameter is used (#31876) --- util/homeassistant/config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/util/homeassistant/config.go b/util/homeassistant/config.go index 77d7bcb98..1e4d5fa84 100644 --- a/util/homeassistant/config.go +++ b/util/homeassistant/config.go @@ -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) }