If anything, Trump fucking around in Iran is helping the switch more than anything, such irony.
Like Putin in Ukraine. But decoupling from Russian gas is still slow going and controversial in Europe, and the "moderate" right is more and more inclined to collaborate with Putin’s little fringe-right helper parties, likely partly because they’re massively bleeding votes and partly out of real sympathies for fringe policies that just used to be unmentionable in polite company.
In a long run - maybe but in a short run high oil/gas/diesel prices push CPI up, as a reaction central banks are rising rates, bonds yields are rising even faster in anticipation of future rate hikes - this makes credit expensive and most green energy project depend on credit so investments into green energy going down too AFAIK. At least clean energy stock indexes are falling for the last few months because of high credit interest rates. So paradoxically Iran war is slowing energy transition.