It would be 100% up until the date that you took it out of service as a rental property.
At the point that it was converted to a primary residence, the business use percent would be zero and depreciation would not apply unless a portion of the property was still being rented.