Germany falsely believed that economic ties and trade with Russia would tame the Russian desire to expand and plunder.
Germany falsely believed that wind and solar could power a modern industrial nation, and didn't realise that in fact they would just render that nation completely dependent upon large amounts of gas, rather than (or in practice,
as well as) coal.
Trade with Russia became unavoidable once Energiewende was implemented; The idea that "ties and trade with Russia would tame the Russian desire to expand and plunder" was more a rationalisation of an unavoidable reality than an actual policy.
Believing things that are not true has consequences. The Russian invasion of Ukraine is, to a non-trivial extent, a consequence of the German belief that intermittent renewable energy can power a modern society.