set max runtime to 30min
This commit is contained in:
parent
c09826c4f9
commit
1456c12608
1 changed files with 2 additions and 2 deletions
2
pulse.py
2
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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue