Skip to content

Commit f8fc831

Browse files
Apply pre-commit auto fixes
1 parent e18f5c4 commit f8fc831

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

zha/application/platforms/light/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,8 +1022,7 @@ def __init__(
10221022
async def async_turn_on(self, **kwargs: Any) -> None:
10231023
# If only change of brightness is requested, the effect doesn't have to be interupted
10241024
if kwargs.get(ATTR_BRIGHTNESS) is not None and all(
1025-
attr == ATTR_BRIGHTNESS or kwargs.get(attr) is None
1026-
for attr in kwargs.keys()
1025+
attr == ATTR_BRIGHTNESS or kwargs.get(attr) is None for attr in kwargs
10271026
):
10281027
effect = self._effect
10291028
else:

0 commit comments

Comments
 (0)