diff --git a/charger/go-e.go b/charger/go-e.go index f2c59c517..738ecf692 100644 --- a/charger/go-e.go +++ b/charger/go-e.go @@ -193,7 +193,7 @@ func (c *GoE) Enable(enable bool) error { status, err := c.apiUpdate(fmt.Sprintf("alw=%d", b)) if err == nil && isValid(status) && status.Alw != b { - return fmt.Errorf("alw update failed: %d", status.Amp) + return fmt.Errorf("alw update failed: %d", status.Alw) } return err