Replacing device but keeping entity_id/long term statistics in HA

Did you ever find a solution for this?

Found your topic after I ran into the very same question @