mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-21 16:16:31 +00:00
Create asyncio loop explicitly (#3804)
Creating the asyncio loop explicitly. This fixes the following deprecation warning on Python 3.10: /usr/src/supervisor/supervisor/__main__.py:31: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop()
This commit is contained in:
parent
8bca34ec6b
commit
5919bc2252
@ -28,7 +28,8 @@ if __name__ == "__main__":
|
||||
bootstrap.initialize_logging()
|
||||
|
||||
# Init async event loop
|
||||
loop = asyncio.get_event_loop()
|
||||
loop = asyncio.new_event_loop()
|
||||
asyncio.set_event_loop(loop)
|
||||
|
||||
# Check if all information are available to setup Supervisor
|
||||
bootstrap.check_environment()
|
||||
|
Loading…
x
Reference in New Issue
Block a user