(question)
return voltage
Prompt for the power inserter model or voltage
Prompt for the power inserter model or voltage
Prompt for the power inserter model or voltage
def _ask_psu_voltage(question):
    """Prompt for the power inserter model or voltage"""
    psu = util.ask_multiple_choice(defs.psus,
                                   question,
                                   "Power inserter",
                                   lambda x: "{}".format(x['model']),
                                   none_option=True,
                                   none_str="No - another model")
    if (psu is None):
        voltage = util.typed_input("What is the voltage supplied to the "
                                   "LNB by your power inserter?")
    else:
        voltage = psu["voltage"]

    return voltage
def _ask_psu_voltage ( question ) : psu = util . ask_multiple_choice ( defs . psus , question , "Power inserter" , lambda x : "{}" . format ( x [ 'model' ] ) , none_option = True , none_str = "No - another model" ) if ( psu is None ) : voltage = util . typed_input ( "What is the voltage supplied to the " "LNB by your power inserter?" ) else : voltage = psu [ "voltage" ] return voltage