Easee: replace hardcoded timeout with config value (#10781)

This commit is contained in:
Michael Heß 2023-11-14 20:45:53 +01:00 • committed by GitHub
parent 2022247fd1
commit e700027f1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -574,7 +574,7 @@ func (c *Easee) waitForTickResponse(expectedTick int64) error {
}
return nil
}
case <-time.After(10 * time.Second):
case <-time.After(c.Client.Timeout):
return api.ErrTimeout
}
}