The conflict has contributed to the current energy shortage. It's not just the war in Ukraine that is the cause, but it definitely is a contributing factor -- especially when you include U.S. sanctions against Russia. Less energy means higher prices for energy, higher prices for energy means a lot of things, including less production (due to lower demand, or because the product cannot be produced at the higher cost of energy + inputs), lower profits (from companies paying higher energy costs), etc.
This is a global energy crisis so nearly every country will essentially drop a notch down as a result.