evcc-io/charger/config.go
2025-10-31 15:25:53 +00:00

20 lines
430 B
Go

package charger
import (
"context"
"github.com/evcc-io/evcc/api"
"github.com/evcc-io/evcc/charger/config"
)
var registry = config.Registry
// Types returns the list of types
func Types() []string {
return registry.Types()
}
// NewFromConfig creates charger from configuration
func NewFromConfig(ctx context.Context, typ string, other map[string]any) (api.Charger, error) {
return config.NewFromConfig(ctx, typ, other)
}