def extra_state_attributes(self) -> dict[str, Any]:
        """Return the state attributes of the generic entity."""
        attributes = super().extra_state_attributes
        if self._data_point.channel_brightness is not None:
            attributes[ATTR_CHANNEL_BRIGHTNESS] = self._data_point.channel_brightness

        if isinstance(self._data_point, CustomDpIpFixedColorLight):
            attributes[ATTR_COLOR] = self._data_point.color_name
            if (
                self._data_point.channel_color_name
                and self._data_point.color_name != self._data_point.channel_color_name
            ):
                attributes[ATTR_CHANNEL_COLOR] = self._data_point.channel_color_name

        return attributes
Return the state attributes of the generic entity.
custom_components/homematicip_local/light.py