The point the earth actually orbits around isn't actually in the middle of the sun. It is at the center of mass between us and the sun. A planet orbiting a dual star system will do the same thing, but the center of mass winds up being somewhere between the two stars.