Replace pylint protected-access with Ruff SLF001 (#115735)

This commit is contained in:
Sid 2024-05-06 20:33:26 +02:00 committed by GitHub
parent 460c05dc43
commit b456d97e65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
90 changed files with 168 additions and 223 deletions

View file

@ -1136,13 +1136,13 @@ class LightGroup(BaseLight, ZhaGroupEntity):
# time of any members.
if member.device.manufacturer in DEFAULT_MIN_TRANSITION_MANUFACTURERS:
self._DEFAULT_MIN_TRANSITION_TIME = (
MinTransitionLight._DEFAULT_MIN_TRANSITION_TIME
MinTransitionLight._DEFAULT_MIN_TRANSITION_TIME # noqa: SLF001
)
# Check all group members to see if they support execute_if_off.
# If at least one member has a color cluster and doesn't support it,
# it's not used.
for endpoint in member.device._endpoints.values():
for endpoint in member.device._endpoints.values(): # noqa: SLF001
for cluster_handler in endpoint.all_cluster_handlers.values():
if (
cluster_handler.name == CLUSTER_HANDLER_COLOR