def METHOD_NAME(config):
    can_id = config[CONF_CAN_ID]
    id_ext = config[CONF_USE_EXTENDED_ID]
    if not id_ext:
        if can_id > 0x7FF:
            raise cv.Invalid("Standard IDs must be 11 Bit (0x000-0x7ff / 0-2047)")
    return config