Retain device and entity settings

Every time I reinstall zigbee2mqtt addon, all changes in UI settings I made in entities and devices, like changing friendly name, icon or area are gone. I couldn’t find place where they would be stored. Is there a way to make these changes permanent?

Restoring deivce and entity registry from hidden folder /config/.storage resolved the issue.