Cleanup and test for optional interfaces (#799)

This commit is contained in:
andig 2021-03-22 12:51:10 +01:00 • committed by GitHub
parent 154a664909
commit 1d79f75980
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 212 additions and 80 deletions

View file

@ -94,9 +94,9 @@ type ChargeRater interface {
// Vehicle represents the EV and it's battery
type Vehicle interface {
Battery
Title() string
Capacity() int64
SoC() (float64, error)
}
// VehicleFinishTimer provides estimated charge cycle finish time