def unpair(address):
 if (not salt.utils.validate.net.mac(address)):
  raise CommandExecutionError('Invalid BD address passed to bluetooth.unpair')
 cmd = 'bluez-test-device remove {0}'.format(address)
 out = __salt__['cmd.run'](cmd).splitlines()
 return out

def unpair ( address ) : if ( not salt . utils . validate . net . mac ( address ) ) : raise CommandExecutionError ( 'Invalid BD address passed to bluetooth.unpair' ) cmd = 'bluez-test-device remove {0}' . format ( address ) out = __salt__ [ 'cmd.run' ] ( cmd ) . splitlines ( ) return out
unpair the bluetooth adapter from a device cli example: .