Easee: replace hardcoded timeout with config value (#10781)
This commit is contained in:
parent
2022247fd1
commit
e700027f1b
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue