My dad lived in a home for 4 years. I took over paying his mortgage for 1 year. I removed him from the title. I sold the house. Do I have to treat the house as a rental?

I was on the title but not the loan. Can I avoid capital gains taxes since I did not collect rent and my dad lived in the house for 4 years?