def color_temp_kelvin(self) -> int | None:
        """Return the color temperature in kelvin."""
        if self._data_point.is_valid:
            return self._data_point.color_temp_kelvin
        if self.is_restored and self._restored_state:
            return self._restored_state.attributes.get(ATTR_COLOR_TEMP_KELVIN)
        return None
Return the color temperature in kelvin.
custom_components/homematicip_local/light.py