Easee: fix enabled detection (#921)

This commit is contained in:
Michael Geers 2021-04-25 20:25:49 +02:00 • committed by GitHub
parent 362024b3b9
commit c1269e2f06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -168,7 +168,7 @@ func (c *Easee) Status() (api.ChargeStatus, error) {
// Enabled implements the Charger.Enabled interface
func (c *Easee) Enabled() (bool, error) {
res, err := c.state()
return res.DynamicChargerCurrent > 0, err
return res.DynamicCircuitCurrentP1 > 0, err
}
// Enable implements the Charger.Enable interface