Easee: implement api.CurrentGetter (#9148)

This commit is contained in:
andig 2023-07-29 13:07:17 +02:00 • committed by GitHub
parent c79a1f2eda
commit 224c7d2d98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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