Investors & landlords

Follow-up question from the above scenario:

 

Let's say that after the tenant leaves end of the August, the owner requires to do a few repairs/maintenance work before the owner moves back in, all due to natural wear-and-tear from the tenant living there (examples: replace the carpet, replace light fixtures, replace the microwave, fix the door-bell, repave the driveway).   Would it be possible to expense these as part of the rental before converting back to primary residence, or would this raised any yellow flags because the repair work is all "done at the end of rental property-to-primary residence conversion?  (Let's say the repairs/maintenance had to be made to get the property back to the original condition at start of renting)