Fix deprecation warning on asyncio.get_event_loop()

This commit is contained in:
David
2022-02-23 23:36:47 +01:00
committed by GitHub
parent 1cf18e684d
commit a48782f767

View File

@@ -146,5 +146,5 @@ def load_config(config_file="config.json"):
if __name__ == "__main__":
atv_config, apikey, categories = load_config()
event_loop = asyncio.get_event_loop()
event_loop = asyncio.get_event_loop_policy().get_event_loop()
event_loop.run_until_complete(loop_atv(event_loop, atv_config, apikey, categories))