(user_info)
return lnb
Return string with the LNB model
Return string with the LNB model
Return string with the LNB model
def get_lnb_model(user_info):
    """Return string with the LNB model"""
    lnb_info = user_info['lnb']
    if (lnb_info['vendor'] == "" and lnb_info['model'] == ""):
        if (lnb_info['universal']):
            lnb = "Custom Universal LNB"
        else:
            lnb = "Custom {}-band LNB".format(lnb_info['band'])
    else:
        lnb = "{} {}".format(lnb_info['vendor'], lnb_info['model'])
    return lnb
def get_lnb_model ( user_info ) : lnb_info = user_info [ 'lnb' ] if ( lnb_info [ 'vendor' ] == "" and lnb_info [ 'model' ] == "" ) : if ( lnb_info [ 'universal' ] ) : lnb = "Custom Universal LNB" else : lnb = "Custom {}-band LNB" . format ( lnb_info [ 'band' ] ) else : lnb = "{} {}" . format ( lnb_info [ 'vendor' ] , lnb_info [ 'model' ] ) return lnb