From af5cb948a0396d2031851115dbc848029b2c57b1 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 15 Aug 2020 00:14:02 -0500 Subject: [PATCH] Adjust slow add entities timeouts to handle slowest known case (#38876) With this change, we should still be able to startup in under 10 minutes if something really goes wrong. The testing done in #38661 was used to determine these values. --- homeassistant/helpers/entity_platform.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/helpers/entity_platform.py b/homeassistant/helpers/entity_platform.py index 0ca2010df48..88d74a208bd 100644 --- a/homeassistant/helpers/entity_platform.py +++ b/homeassistant/helpers/entity_platform.py @@ -30,8 +30,8 @@ if TYPE_CHECKING: SLOW_SETUP_WARNING = 10 SLOW_SETUP_MAX_WAIT = 60 -SLOW_ADD_ENTITY_MAX_WAIT = 10 # Per Entity -SLOW_ADD_MIN_TIMEOUT = 60 +SLOW_ADD_ENTITY_MAX_WAIT = 15 # Per Entity +SLOW_ADD_MIN_TIMEOUT = 500 PLATFORM_NOT_READY_RETRIES = 10 DATA_ENTITY_PLATFORM = "entity_platform"