chore: fix soc

This commit is contained in:
andig 2025-01-21 17:16:43 +01:00
parent afc038ed1f
commit 350f50f2d7

View file

@ -61,7 +61,7 @@ func NewSwitchSocketFromConfig(ctx context.Context, other map[string]interface{}
var soc func() (float64, error)
if cc.Soc != nil {
soc, err = provider.NewFloatGetterFromConfig(ctx, *cc.Energy)
soc, err = provider.NewFloatGetterFromConfig(ctx, *cc.Soc)
if err != nil {
return nil, err
}