Ignore undefined-loop-variable pylint warnings in zha tests (#119476)

This commit is contained in:
epenet 2024-06-12 12:24:16 +02:00 committed by GitHub
parent 8323266960
commit d69e62c096
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -368,6 +368,7 @@ def test_cluster_handler_registry() -> None:
all_quirk_ids[cluster_id] = {None}
all_quirk_ids[cluster_id].add(quirk_id)
# pylint: disable-next=undefined-loop-variable
del quirk, model_quirk_list, manufacturer
for (

View File

@ -576,6 +576,7 @@ def test_quirk_classes() -> None:
quirk_id = getattr(quirk, ATTR_QUIRK_ID, None)
if quirk_id is not None and quirk_id not in all_quirk_ids:
all_quirk_ids.append(quirk_id)
# pylint: disable-next=undefined-loop-variable
del quirk, model_quirk_list, manufacturer
# validate all quirk IDs used in component match rules