How to best repair the loss of energy storage charging piles