def set(self, is_on=None, brightness=None, color=None,<EOL>cancel_transition=True):
if cancel_transition:<EOL><INDENT>self._cancel_active_transition()<EOL><DEDENT>if color is not None:<EOL><INDENT>self._assert_is_color(color)<EOL>self._color = color<EOL><DEDENT>super().set(is_on, brightness, cancel_transition=False)<EOL>
Set properties of the led simultaneously before updating pwm values.

:param is_on: On-off state of the led.
:param brightness: Brightness of the led.
:param color: Color of the led.
:param cancel_transition: Cancel active transitions.