From cc0fa48012658fa9d4a83e03978a3e682e2d4939 Mon Sep 17 00:00:00 2001 From: Simon Hansen <67142049+DurgNomis-drol@users.noreply.github.com> Date: Tue, 15 Nov 2022 20:20:14 +0100 Subject: [PATCH] Increase timeout to 25 seconds --- custom_components/toyota/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/toyota/__init__.py b/custom_components/toyota/__init__.py index 9b7845c..27de1d7 100644 --- a/custom_components/toyota/__init__.py +++ b/custom_components/toyota/__init__.py @@ -40,7 +40,7 @@ UPDATE_INTERVAL = timedelta(minutes=10) -async def with_timeout(task, timeout_seconds=15): +async def with_timeout(task, timeout_seconds=25): """Run an async task with a timeout.""" async with async_timeout.timeout(timeout_seconds): return await task