def METHOD_NAME(cls, value: HVACModeT) -> DPTArray:
    """Serialize to KNX/IP raw data."""
    for knx_value, mode in cls.SUPPORTED_MODES.items():
        if mode == value:
            return DPTArray(knx_value)
    raise ConversionError(f"Value not supported for {cls.__name__}", value=value)