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

@@ -388,7 +388,7 @@ class EntityPlatform:
self.scan_interval,
)
async def _async_add_entity( # type: ignore[no-untyped-def]
async def _async_add_entity( # type: ignore[no-untyped-def] # noqa: C901
self, entity, update_before_add, entity_registry, device_registry
):
"""Add an entity to the platform."""