Easee: don’t send pause/resume commands when disconnected (#8583)

This commit is contained in:
Michael Heß 2023-06-24 10:04:47 +02:00 • committed by GitHub
parent 693041d740
commit edcb8c720a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -405,6 +405,11 @@ func (c *Easee) Enable(enable bool) error {
}
}
// do not send pause/resume if disconnected
if c.opMode == easee.ModeDisconnected {
return nil
}
// resume/stop charger
action := easee.ChargePause
if enable {