Save the home assistant configuration then restore it. It worked for me after doing the SSD boot upgrade.
in HA: Settings, --> System --> Backup.
Save the backup file, tar file, on the computer the you remoted into HA.
After a full reinstall and a new HA is running, restore the backup. At the main HA login screen don't setup a new account. select restore from backup. Select complete backup