mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 17:57:55 +00:00
Lint
This commit is contained in:
parent
71e3047f5c
commit
37706c2731
@ -28,6 +28,7 @@ def set_loop() -> None:
|
|||||||
|
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
if hasattr(asyncio, 'WindowsProactorEventLoopPolicy'):
|
if hasattr(asyncio, 'WindowsProactorEventLoopPolicy'):
|
||||||
|
# pylint: disable=no-member
|
||||||
policy = asyncio.WindowsProactorEventLoopPolicy()
|
policy = asyncio.WindowsProactorEventLoopPolicy()
|
||||||
else:
|
else:
|
||||||
class ProactorPolicy(BaseDefaultEventLoopPolicy):
|
class ProactorPolicy(BaseDefaultEventLoopPolicy):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user