Add PhaseDescriber api (#12052)

This commit is contained in:
andig 2024-02-08 19:14:13 +01:00 • committed by GitHub
parent 05fc57b6cd
commit 72cb1e3800
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 51 additions and 14 deletions

View file

@ -107,15 +107,20 @@ type Authorizer interface {
Authorize(key string) error
}
// PhaseDescriber returns the number of availablephases
type PhaseDescriber interface {
Phases() int
}
// Vehicle represents the EV and it's battery
type Vehicle interface {
Battery
BatteryCapacity
IconDescriber
FeatureDescriber
PhaseDescriber
Title() string
SetTitle(string)
Phases() int
Identifiers() []string
OnIdentified() ActionConfig
}