@_cmd
def set_brightness(self, brightness, duration) -> None:
    'Set bulb brightness.'
    if brightness:
        _LOGGER.debug('Setting brightness: %s', brightness)
        self._bulb.set_brightness(((brightness / 255) * 100), duration=duration)
Set bulb brightness.
@_cmd
def set_brightness(self, brightness, duration) -> None:
    
    if brightness:
        _LOGGER.debug('Setting brightness: %s', brightness)
        self._bulb.set_brightness(((brightness / 255) * 100), duration=duration)