Easee: implement api.CurrentGetter (#9148)
This commit is contained in:
parent
c79a1f2eda
commit
224c7d2d98
1 changed files with 9 additions and 0 deletions
|
|
@ -570,6 +570,15 @@ func (c *Easee) MaxCurrent(current int64) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
var _ api.CurrentGetter = (*Easee)(nil)
|
||||
|
||||
// GetMaxCurrent implements the api.CurrentGetter interface
|
||||
func (c *Easee) GetMaxCurrent() (float64, error) {
|
||||
c.mux.Lock()
|
||||
defer c.mux.Unlock()
|
||||
return c.dynamicChargerCurrent, nil
|
||||
}
|
||||
|
||||
var _ api.PhaseSwitcher = (*Easee)(nil)
|
||||
|
||||
// Phases1p3p implements the api.PhaseSwitcher interface
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue