'Return the CT color value in mireds.'

@property
def color_temp(self):

    if ((self._light_data.hex_color is None) or ((self.supported_features & SUPPORT_COLOR_TEMP) == 0) or (not self._ok_temps)):
        return None
    kelvin = next((kelvin for (kelvin, hex_color) in self._ok_temps.items() if (hex_color == self._light_data.hex_color)), None)
    if (kelvin is None):
        _LOGGER.error('Unexpected    color    temperature    found    for    %s:    %s', self.name, self._light_data.hex_color)
        return
    return color_util.color_temperature_kelvin_to_mired(kelvin)
