Investors & landlords

In 2020, I turned my second home into a full-time rental. I have a HELOC on my main home on which I pay interest. The HELOC debt was used 100 percent to restore the (now) rental. Can I deduct the HELOC interest I paid in 2020 (at least for the portion of the year it was rented)?