If I purchased a newly built home and solar (panel and battery) was included as a separate line item, can I claim that has part of the Home Energy Credit?

The sale of the solar setup was part of the overall cost of the home and was in closing costs.