@classmethod
def get_device_type_by_device_category(cls, device_category):
    """Convert from device category to device type.

        Example:
            'xtender' -> SD_XTENDER

        :return The device type
        """
    device_category = device_category.lower()
    if device_category in 'xtender':
        return cls.SD_XTENDER
    elif device_category in 'compact':
        return cls.SD_COMPACT
    elif device_category in ('vario-track', 'vario_track'):
        return cls.SD_VARIO_TRACK
    elif device_category in ('vario-string', 'vario_string'):
        return cls.SD_VARIO_STRING
    elif device_category in ('vario-power', 'vario_power'):
        return cls.SD_VARIO_POWER
    elif device_category in 'rcc':
        return cls.SD_RCC
    elif device_category in 'bsp':
        return cls.SD_BSP
    else:
        assert False, 'Device category not found!'
