From 838773b2aee651507471e1098c6cb48229103219 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 30 Jul 2026 06:50:44 +0000 Subject: [PATCH] Home Assistant: add features config (heating/integrateddevice) (#32288) --- charger/homeassistant.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charger/homeassistant.go b/charger/homeassistant.go index f6f8f0bbc..5ac519b9f 100644 --- a/charger/homeassistant.go +++ b/charger/homeassistant.go @@ -13,6 +13,7 @@ import ( // HomeAssistant charger implementation type HomeAssistant struct { + *embed implement.Caps conn *homeassistant.Connection status string @@ -29,6 +30,7 @@ func init() { // NewHomeAssistantFromConfig creates a HomeAssistant charger from generic config func NewHomeAssistantFromConfig(other map[string]any) (api.Charger, error) { var cc struct { + embed `mapstructure:",squash"` homeassistant.Config `mapstructure:",squash"` Status string // required - sensor for charge status StatusA string // optional - custom states mapped to status A @@ -74,6 +76,7 @@ func NewHomeAssistantFromConfig(other map[string]any) (api.Charger, error) { } c := &HomeAssistant{ + embed: &cc.embed, Caps: implement.New(), conn: conn, status: cc.Status,