#NEWLINE# def unpair( address ) : #NEWLINE# #INDENT# "\n    Unpair the bluetooth adapter from a device\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' bluetooth.unpair DE:AD:BE:EF:CA:FE\n\n    Where DE:AD:BE:EF:CA:FE is the address of the device to unpair.\n\n    TODO: This function is currently broken, as the bluez-simple-agent program\n    no longer ships with BlueZ >= 5.0. It needs to be refactored.\n    " #NEWLINE# if ( not salt . utils . validate . net . mac ( address ) ) : #NEWLINE# #INDENT# raise CommandExecutionError ( 'Invalid BD address passed to bluetooth.unpair' ) #NEWLINE# #UNINDENT# cmd = 'bluez-test-device remove {0}' . format ( address ) #NEWLINE# out = __salt__ [ 'cmd.run' ] ( cmd ) . splitlines ( ) #NEWLINE# return out