1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Enable mccabe complexity checks in flake8 (#49616)

Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
J. Nick Koston
2021-04-25 00:38:40 -10:00
committed by GitHub
parent 9f8e683ae3
commit 3fa8ffa731
42 changed files with 51 additions and 40 deletions

View File

@@ -63,7 +63,9 @@ class HomeAssistantConfig(OrderedDict):
return "\n".join([err.message for err in self.errors])
async def async_check_ha_config_file(hass: HomeAssistant) -> HomeAssistantConfig:
async def async_check_ha_config_file( # noqa: C901
hass: HomeAssistant,
) -> HomeAssistantConfig:
"""Load and check if Home Assistant configuration file is valid.
This method is a coroutine.