Since 2009, the IRS has required your ownership period ...
between qualifying and non-qualifying use.
blog title with Link below: Think Twice Before Moving Into Your Rental To Avoid Taxes
https://www.merriman.com/planning-on-moving-back-into-your-rental-in-the-future-read-this-first/