From 1d1e2ebe101af12f83ea770301549e15055b36ea Mon Sep 17 00:00:00 2001 From: Patrick Schmidt Date: Wed, 4 Dec 2024 21:24:54 +0100 Subject: [PATCH] chore: Removed usage of asyncio with default event loop --- mobileraker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobileraker.py b/mobileraker.py index 4886efd..b2949ce 100644 --- a/mobileraker.py +++ b/mobileraker.py @@ -40,8 +40,8 @@ def main() -> None: os.path.expanduser(cmd_line_args.configfile)) local_config = CompanionLocalConfig(passed_config_location) - - event_loop = asyncio.get_event_loop() + event_loop = asyncio.new_event_loop() + asyncio.set_event_loop(event_loop) fcmc = MobilerakerFcmClient( # 'http://127.0.0.1:8080', 'https://mobileraker.eliteschw31n.de',