Can I deduct a portion of my investment in solar panels as an asset for a rental unit in my home?

In early 2024, I invested in solar panels for my home, and I am claiming that investment as a clean energy tax credit for 2024.  However, I have a basement apartment in my home that comprises roughly 30% of the home's square footage.  Can I also claim the roughly 30% of the cost of the solar panels as a capital improvement for the basement apartment?   If so, exactly where do I do so in Turbotax.