Setting the priority of paired devices