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