Residential Clean Energy Credit 2022 battery and solar

Hello,

In 2022 I installed solar panels and Tesla batteries on my primary home. I claimed the 

Residential Clean Energy Credit for this. Recently the IRS sent a letter that I did not provide enough documentation and needed to pay back the full credit + interest. I provided them additional documentation showing I did indeed install Solar and Batteries in 2022.
The IRS then came back and said batteries were not a qualified Residential Clean Energy Credit and I needed to pay the credit + interest back for the batteries but not the solar. I do see that in 2023 they specifically stated batteries were allowed as a tax credit whether you installed with solar or not. However from my understanding 2022 and prior so long as you installed the batteries with solar, you could claim the Residential Clean Energy Credit for batteries and solar.
Does anyone have guidance on this? 
 
Thank you