Easee: no pause/resume while unauthenticated (#8607)

This commit is contained in:
Michael Heß 2023-06-24 12:52:09 +02:00 • committed by GitHub
parent edcb8c720a
commit 9cd614a0e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -405,8 +405,8 @@ func (c *Easee) Enable(enable bool) error {
}
}
// do not send pause/resume if disconnected
if c.opMode == easee.ModeDisconnected {
// do not send pause/resume if disconnected or unauthenticated
if c.opMode == easee.ModeDisconnected || c.opMode == easee.ModeAwaitingAuthentication {
return nil
}