mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 11:45:09 +02:00
Enable RUF021 (#135832)
This commit is contained in:
committed by
GitHub
parent
85b4be2f16
commit
b4f4b06f29
@@ -70,8 +70,10 @@ def run():
|
||||
# If we want to only add references to own integrations
|
||||
# but not include entity integrations
|
||||
if (
|
||||
args.limit_reference
|
||||
and (key_integration != key_to_reference_integration and not is_common)
|
||||
(
|
||||
args.limit_reference
|
||||
and (key_integration != key_to_reference_integration and not is_common)
|
||||
)
|
||||
# Do not create self-references in entity integrations
|
||||
or key_integration in Platform.__members__.values()
|
||||
):
|
||||
|
Reference in New Issue
Block a user