Enable mccabe complexity checks in flake8 (#49616)
Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
parent
9f8e683ae3
commit
3fa8ffa731
42 changed files with 51 additions and 40 deletions
|
@ -242,7 +242,7 @@ def filter_turn_off_params(params):
|
|||
return {k: v for k, v in params.items() if k in (ATTR_TRANSITION, ATTR_FLASH)}
|
||||
|
||||
|
||||
async def async_setup(hass, config):
|
||||
async def async_setup(hass, config): # noqa: C901
|
||||
"""Expose light control via state machine and services."""
|
||||
component = hass.data[DOMAIN] = EntityComponent(
|
||||
_LOGGER, DOMAIN, hass, SCAN_INTERVAL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue