From 1456c1260825e581041a0db59f05bd4e18e3d7ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Ole=20H=C3=BCbner?= <128445434+janolehuebner@users.noreply.github.com> Date: Tue, 13 Feb 2024 11:38:00 +0100 Subject: [PATCH] set max runtime to 30min --- pulse.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pulse.py b/pulse.py index f87b6b9..15ea7bc 100644 --- a/pulse.py +++ b/pulse.py @@ -60,7 +60,7 @@ async def run(): home = tibber_connection.get_homes()[0] await home.rt_subscribe(_incoming) - timeout = time.time() + 3600 # Set a timeout for 3600 seconds (1 hour) + timeout = time.time() + 1800 # Set a timeout for 3600 seconds (1 hour) while time.time() < timeout: await asyncio.sleep(2) @@ -69,4 +69,4 @@ async def run(): loop = asyncio.get_event_loop() loop.run_until_complete(run()) -exit(42) \ No newline at end of file +exit(42)