1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 12:29:08 +00:00

Remove uvloop (#2176)

This commit is contained in:
Pascal Vizeli
2020-10-26 11:45:12 +01:00
committed by GitHub
parent 64229a188e
commit 8e57cd2751
2 changed files with 1 additions and 15 deletions

View File

@@ -16,5 +16,4 @@ pytz==2020.1
pyudev==0.22.0
ruamel.yaml==0.15.100
sentry-sdk==0.19.1
uvloop==0.14.0
voluptuous==0.12.0

View File

@@ -9,25 +9,12 @@ from supervisor import bootstrap
_LOGGER: logging.Logger = logging.getLogger(__name__)
def initialize_event_loop():
"""Attempt to use uvloop."""
try:
# pylint: disable=import-outside-toplevel
import uvloop
uvloop.install()
except ImportError:
pass
return asyncio.get_event_loop()
# pylint: disable=invalid-name
if __name__ == "__main__":
bootstrap.initialize_logging()
# Init async event loop
loop = initialize_event_loop()
loop = asyncio.get_event_loop()
# Check if all information are available to setup Supervisor
bootstrap.check_environment()