Replace pylint protected-access with Ruff SLF001 (#115735)
This commit is contained in:
parent
460c05dc43
commit
b456d97e65
90 changed files with 168 additions and 223 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue