Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
weblate committed Nov 24, 2024
2 parents 61daf2c + 5085cef commit f8322f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions provider/combined.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package provider

import (
"context"
"fmt"

"github.com/evcc-io/evcc/api"
"github.com/evcc-io/evcc/util"
Expand Down Expand Up @@ -29,12 +30,12 @@ func NewCombinedFromConfig(ctx context.Context, other map[string]interface{}) (P

plugged, err := NewBoolGetterFromConfig(ctx, cc.Plugged)
if err != nil {
return nil, err
return nil, fmt.Errorf("plugged: %w", err)
}

charging, err := NewBoolGetterFromConfig(ctx, cc.Charging)
if err != nil {
return nil, err
return nil, fmt.Errorf("charging: %w", err)
}

o := NewCombinedProvider(plugged, charging)
Expand Down

0 comments on commit f8322f2

Please sign in to comment.