Stricter pylint message control (#86154)

This commit is contained in:
Franck Nijhof
2023-01-20 13:47:55 +01:00
committed by GitHub
parent 29b2b6727e
commit 79b52a2b41
73 changed files with 112 additions and 133 deletions

View File

@@ -976,7 +976,7 @@ async def async_check_ha_config_file(hass: HomeAssistant) -> str | None:
This method is a coroutine.
"""
# pylint: disable=import-outside-toplevel
# pylint: disable-next=import-outside-toplevel
from .helpers import check_config
res = await check_config.async_check_ha_config_file(hass)
@@ -994,7 +994,7 @@ def async_notify_setup_error(
This method must be run in the event loop.
"""
# pylint: disable=import-outside-toplevel
# pylint: disable-next=import-outside-toplevel
from .components import persistent_notification
if (errors := hass.data.get(DATA_PERSISTENT_ERRORS)) is None: