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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user