Update config_setup.py

Move loop creation on config to main
This commit is contained in:
David
2023-04-23 00:48:13 +02:00
committed by GitHub
parent ce82c7b719
commit 067d429d33

View File

@@ -58,6 +58,7 @@ async def find_atvs(loop):
def main(config, config_file, debug):
loop = asyncio.get_event_loop_policy().get_event_loop()
try:
num_atvs = len(config["atvs"])
except: