Which country are you talking about. I think each needs it's own investigation.
The German media was extremely critical of Habeck for subsidiesing ACs and "sabotaging his own goals".
Rooftop solar is a pretty straightforward solution to the energy need of ACs at least outside cities.
The German greens were also not the ones that rushed the nuclear exit.