Switching to reverse-cycle air-conditioning