We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e18f5c4 commit f8fc831Copy full SHA for f8fc831
zha/application/platforms/light/__init__.py
@@ -1022,8 +1022,7 @@ def __init__(
1022
async def async_turn_on(self, **kwargs: Any) -> None:
1023
# If only change of brightness is requested, the effect doesn't have to be interupted
1024
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()
+ attr == ATTR_BRIGHTNESS or kwargs.get(attr) is None for attr in kwargs
1027
):
1028
effect = self._effect
1029
else:
0 commit comments