chore: rename ChargePhases api to PhaseSwitcher (#4105)

This commit is contained in:
andig 2022-08-13 14:19:18 +02:00 • committed by GitHub
parent f9e3027bbf
commit 8ad84d4278
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 91 additions and 91 deletions

View file

@ -10,7 +10,7 @@ import (
"github.com/fatih/structs"
)
//go:generate mockgen -package mock -destination ../mock/mock_api.go github.com/evcc-io/evcc/api Charger,ChargeState,ChargePhases,Identifier,Meter,MeterEnergy,Vehicle,ChargeRater,Battery
//go:generate mockgen -package mock -destination ../mock/mock_api.go github.com/evcc-io/evcc/api Charger,ChargeState,PhaseSwitcher,Identifier,Meter,MeterEnergy,Vehicle,ChargeRater,Battery
// ChargeMode are charge modes modeled after OpenWB
type ChargeMode string
@ -107,8 +107,8 @@ type ChargerEx interface {
MaxCurrentMillis(current float64) error
}
// ChargePhases provides 1p3p switching
type ChargePhases interface {
// PhaseSwitcher provides 1p3p switching
type PhaseSwitcher interface {
Phases1p3p(phases int) error
}