MQTT entities ID changed

I have been using an ESP board to read values from my heat pump and publish them via MQTT. Since an update yesterday, the names for sensors have changed. For my dashboards this is not a huge deal, but my history for energy consumption is now split in two (before update and after).

Is there a way to fix this? I would imagine something like to copy the DB values from the old sensor to the new one, but I have no idea to go about this.

What would be a good way to fix this?