Rental to second home then sold

I hope this kind of question is allowed, I really stumped and don’t know where to turn. 


We had a tenant occupied house 2011-Dec 2019. For pandemic reasons, my husband lived in the house March 2020-August 2020, while I stayed in the primary residence. House was sold in October. 

I know how to deal with the passive gains and recapture stuff. But, for 2020, does it count as a second home for interest and tax deductability? Filing jointly.