If you rent out a bedroom within your primary residence, does that time of rental count as non-qualified use for capital gains exclusion when it comes time to sell?

I lived in the home for the entirety of the 5 years that I owned it.