Hello,
If you deleted a custom card from your Home Assistant dashboard, you can find the YAML code in your latest backup. Extract the backup file and look for ui-lovelace.yaml in the config directory or check the .storage mghpatientgateway directory for files named lovelace. This should help you recover the custom card’s code.