@_cmd
def set_colortemp(self, colortemp, duration) -> None:
    "Set bulb's color temperature."
    if (colortemp and (self.supported_features & SUPPORT_COLOR_TEMP)):
        temp_in_k = mired_to_kelvin(colortemp)
        _LOGGER.debug('Setting color temp: %s K', temp_in_k)
        self._bulb.set_color_temp(temp_in_k, duration=duration)
Set bulb's color temperature.
@_cmd
def set_colortemp(self, colortemp, duration) -> None:
    
    if (colortemp and (self.supported_features & SUPPORT_COLOR_TEMP)):
        temp_in_k = mired_to_kelvin(colortemp)
        _LOGGER.debug('Setting color temp: %s K', temp_in_k)
        self._bulb.set_color_temp(temp_in_k, duration=duration)