Upgrade pylint to 2.6.0 (#39363)

This commit is contained in:
Ville Skyttä authored and GitHub committed 2020-08-29 07:59:24 +02:00
1 parent 67de1d3466
commit 1bf2c4d976
52 files changed
+77 -86

No files matched your search

+2 -4
View File
@@ -46,7 +46,7 @@ class RuntimeConfig:
if sys.platform == "win32" and sys.version_info[:2] < (3, 8):
PolicyBase = asyncio.WindowsProactorEventLoopPolicy
else:
PolicyBase = asyncio.DefaultEventLoopPolicy # pylint: disable=invalid-name
PolicyBase = asyncio.DefaultEventLoopPolicy
class HassEventLoopPolicy(PolicyBase): # type: ignore
@@ -117,9 +117,7 @@ def _async_loop_exception_handler(_: Any, context: Dict) -> None:
)
async def setup_and_run_hass(
runtime_config: RuntimeConfig,
) -> int:
async def setup_and_run_hass(runtime_config: RuntimeConfig) -> int:
"""Set up Home Assistant and run."""
hass = await bootstrap.async_setup_hass(runtime_config)