mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 13:34:54 +01:00
[http_request] Change default timeout to 4.5s (#7123)
This commit is contained in:
parent
dc24eefe08
commit
ae476bb400
2 changed files with 2 additions and 2 deletions
|
@ -99,7 +99,7 @@ CONFIG_SCHEMA = cv.All(
|
|||
cv.Optional(CONF_FOLLOW_REDIRECTS, True): cv.boolean,
|
||||
cv.Optional(CONF_REDIRECT_LIMIT, 3): cv.int_,
|
||||
cv.Optional(
|
||||
CONF_TIMEOUT, default="5s"
|
||||
CONF_TIMEOUT, default="4.5s"
|
||||
): cv.positive_time_period_milliseconds,
|
||||
cv.SplitDefault(CONF_ESP8266_DISABLE_SSL_SUPPORT, esp8266=False): cv.All(
|
||||
cv.only_on_esp8266, cv.boolean
|
||||
|
|
|
@ -80,7 +80,7 @@ class HttpRequestComponent : public Component {
|
|||
const char *useragent_{nullptr};
|
||||
bool follow_redirects_;
|
||||
uint16_t redirect_limit_;
|
||||
uint16_t timeout_{5000};
|
||||
uint16_t timeout_{4500};
|
||||
uint32_t watchdog_timeout_{0};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue