Cleanup and test for optional interfaces (#799)
This commit is contained in:
parent
154a664909
commit
1d79f75980
28 changed files with 212 additions and 80 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue