@_cmd
def set_rgb(self, rgb, duration) -> None:
    "Set bulb's color."
    if (rgb and (self.supported_features & SUPPORT_COLOR)):
        _LOGGER.debug('Setting RGB: %s', rgb)
        self._bulb.set_rgb(rgb[0], rgb[1], rgb[2], duration=duration)
Set bulb's color.
@_cmd
def set_rgb(self, rgb, duration) -> None:
    
    if (rgb and (self.supported_features & SUPPORT_COLOR)):
        _LOGGER.debug('Setting RGB: %s', rgb)
        self._bulb.set_rgb(rgb[0], rgb[1], rgb[2], duration=duration)