Deductions & credits

Thank you.   We would not have moved if the house had not sold.   We left 2 days prior because we had the carpets cleaned.  If the house had fallen out of escrow,  we would have moved our stuff back in and stayed.   We went to our vacation home we own in Oregon and put our belongings in storage.  Once the house in California closed,  that is when it became more than a temporary absence.   Correct?