(sat)
return lnb
Ask the user's LNB
Ask the user's LNB
Ask the user s LNB
def _ask_lnb(sat):
    """Ask the user's LNB"""
    question = "Please, inform your LNB model:"
    lnb_options = [
        lnb for lnb in defs.lnbs
        if _sat_freq_in_lnb_range(sat, lnb) and lnb['vendor'] != 'Selfsat'
    ]
    lnb = util.ask_multiple_choice(
        lnb_options,
        question,
        "LNB",
        lambda x: "{} {} {}".format(
            x['vendor'], x['model'], "(Universal Ku band LNBF)"
            if x['universal'] else ""),
        none_option=True,
        none_str="Other")

    if (lnb is None):
        lnb = _cfg_custom_lnb(sat)

    return lnb
def _ask_lnb ( sat ) : question = "Please, inform your LNB model:" lnb_options = [ lnb for lnb in defs . lnbs if _sat_freq_in_lnb_range ( sat , lnb ) and lnb [ 'vendor' ] != 'Selfsat' ] lnb = util . ask_multiple_choice ( lnb_options , question , "LNB" , lambda x : "{} {} {}" . format ( x [ 'vendor' ] , x [ 'model' ] , "(Universal Ku band LNBF)" if x [ 'universal' ] else "" ) , none_option = True , none_str = "Other" ) if ( lnb is None ) : lnb = _cfg_custom_lnb ( sat ) return lnb