Bump pylint from 2.3.1 to 2.4.0 (#1307)

* Bump pylint from 2.3.1 to 2.4.0

Bumps [pylint](https://github.com/PyCQA/pylint) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/PyCQA/pylint/releases)
- [Changelog](https://github.com/PyCQA/pylint/blob/master/ChangeLog)
- [Commits](https://github.com/PyCQA/pylint/compare/pylint-2.3.1...pylint-2.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Update __main__.py

* Update bootstrap.py

* Update homeassistant.py

* Update __init__.py
This commit is contained in:
dependabot-preview[bot] 2019-09-25 09:41:16 +02:00 committed by Pascal Vizeli
parent d4e41dbf80
commit 5e4e9740c7
5 changed files with 6 additions and 4 deletions

View File

@ -12,6 +12,7 @@ _LOGGER: logging.Logger = logging.getLogger(__name__)
def initialize_event_loop(): def initialize_event_loop():
"""Attempt to use uvloop.""" """Attempt to use uvloop."""
try: try:
# pylint: disable=import-outside-toplevel
import uvloop import uvloop
uvloop.install() uvloop.install()

View File

@ -293,7 +293,7 @@ class AddonManager(CoreSysAttributes):
continue continue
# Need local lookup # Need local lookup
elif addon.need_build and not addon.is_detached: if addon.need_build and not addon.is_detached:
store = self.store[addon.slug] store = self.store[addon.slug]
# If this add-on is available for rebuild # If this add-on is available for rebuild
if addon.version == store.version: if addon.version == store.version:

View File

@ -236,6 +236,7 @@ def supervisor_debugger(coresys: CoreSys) -> None:
"""Setup debugger if needed.""" """Setup debugger if needed."""
if not coresys.config.debug: if not coresys.config.debug:
return return
# pylint: disable=import-outside-toplevel
import ptvsd import ptvsd
_LOGGER.info("Initialize Hass.io debugger") _LOGGER.info("Initialize Hass.io debugger")

View File

@ -575,7 +575,7 @@ class HomeAssistant(JsonConfig, CoreSysAttributes):
migration_progress = True migration_progress = True
_LOGGER.info("Home Assistant record migration in progress") _LOGGER.info("Home Assistant record migration in progress")
continue continue
elif migration_progress: if migration_progress:
migration_progress = False # Reset start time migration_progress = False # Reset start time
start_time = time.monotonic() start_time = time.monotonic()
_LOGGER.info("Home Assistant record migration done") _LOGGER.info("Home Assistant record migration done")
@ -586,7 +586,7 @@ class HomeAssistant(JsonConfig, CoreSysAttributes):
pip_progress = True pip_progress = True
_LOGGER.info("Home Assistant pip installation in progress") _LOGGER.info("Home Assistant pip installation in progress")
continue continue
elif pip_progress: if pip_progress:
pip_progress = False # Reset start time pip_progress = False # Reset start time
start_time = time.monotonic() start_time = time.monotonic()
_LOGGER.info("Home Assistant pip installation done") _LOGGER.info("Home Assistant pip installation done")

View File

@ -1,5 +1,5 @@
flake8==3.7.8 flake8==3.7.8
pylint==2.3.1 pylint==2.4.0
pytest==5.1.3 pytest==5.1.3
pytest-timeout==1.3.3 pytest-timeout==1.3.3
pytest-aiohttp==0.3.0 pytest-aiohttp==0.3.0