chore: fix soc
This commit is contained in:
parent
afc038ed1f
commit
350f50f2d7
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue