#NEWLINE# def noscan( dev ) : #NEWLINE# #INDENT# "\n    Turn off scanning modes on this device.\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' bluetooth.noscan hci0\n    " #NEWLINE# if ( dev not in address_ ( ) ) : #NEWLINE# #INDENT# raise CommandExecutionError ( 'Invalid dev passed to bluetooth.noscan' ) #NEWLINE# #UNINDENT# cmd = 'hciconfig {0} noscan' . format ( dev ) #NEWLINE# __salt__ [ 'cmd.run' ] ( cmd ) . splitlines ( ) #NEWLINE# cmd = 'hciconfig {0}' . format ( dev ) #NEWLINE# out = __salt__ [ 'cmd.run' ] ( cmd ) #NEWLINE# if ( 'SCAN' in cmd ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return True