def extra_state_attributes(self) -> dict[str, Any]:
        """Return the state attributes of the generic entity."""
        attributes = super().extra_state_attributes
        if isinstance(self._data_point, CustomDpIpIrrigationValve) and (
            self._data_point.channel_value and self._data_point.value != self._data_point.channel_value
        ):
            attributes[ATTR_CHANNEL_STATE] = self._data_point.channel_value
        return attributes
Return the state attributes of the generic entity.
custom_components/homematicip_local/valve.py