mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 19:57:07 +00:00
Increase timeout and log the url of the elkm1 system that time… (#34172)
* Log the url of the elkm1 system that times out * Bump timeout to 120s
This commit is contained in:
parent
2d8bb8e6d2
commit
2553b0d1e0
@ -39,7 +39,7 @@ from .const import (
|
||||
ELK_ELEMENTS,
|
||||
)
|
||||
|
||||
SYNC_TIMEOUT = 55
|
||||
SYNC_TIMEOUT = 120
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
@ -215,7 +215,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
|
||||
|
||||
if not await async_wait_for_elk_to_sync(elk, SYNC_TIMEOUT):
|
||||
_LOGGER.error(
|
||||
"Timed out after %d seconds while trying to sync with ElkM1", SYNC_TIMEOUT,
|
||||
"Timed out after %d seconds while trying to sync with ElkM1 at %s",
|
||||
SYNC_TIMEOUT,
|
||||
conf[CONF_HOST],
|
||||
)
|
||||
elk.disconnect()
|
||||
raise ConfigEntryNotReady
|
||||
|
@ -64,8 +64,9 @@ async def validate_input(data):
|
||||
timed_out = False
|
||||
if not await async_wait_for_elk_to_sync(elk, VALIDATE_TIMEOUT):
|
||||
_LOGGER.error(
|
||||
"Timed out after %d seconds while trying to sync with elkm1",
|
||||
"Timed out after %d seconds while trying to sync with ElkM1 at %s",
|
||||
VALIDATE_TIMEOUT,
|
||||
url,
|
||||
)
|
||||
timed_out = True
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user