def _transition_steps(self, brightness=None):
if brightness is not None:<EOL><INDENT>self._assert_is_brightness(brightness)<EOL>return self._driver.steps(self.brightness, brightness)<EOL><DEDENT>return <NUM_LIT:0><EOL>
Get the maximum number of steps needed for a transition.

:param brightness: The brightness to transition to (0.0-1.0).
:return: The maximum number of steps.