Primary Home Sale - Depreciation

We bought our home in 2007 and moved into it.  In 2009-2010, the economy suffered and so did our jobs.  After failing to sell our house for two years, we moved out in 2012 and rented it our while staying with family.  We returned to our home in 2015, and lived there until recently selling in 2023. 

While we rented it out for those three years, we filed the depreciation.  We moved back for 7-8 years prior to selling last year.

Are there any circumstances where we wouldn't be liable for income tax on the prior depreciation?