RATGDO unavailable after adopting

So I had firmware loaded on my RATGDO but didn’t actually adopt the device. Home Assistant saw the device and would use it. Now, when I actually adopted the device under ESPHome and pushed the below YAML config to it, ESPHome shows that the device is there and online, but when I click on Settings > Devics & services and click the ESPHome devices list and click on ratgdov2.5i, everything shows as unavailable.

substitutions:
  id_prefix: ratgdov25i
  friendly_name: "ratgdov2.5i 885dfd"
  uart_tx_pin: D1
  uart_rx_pin: D2
  input_obst_pin: D7
  status_door_pin: D0
  status_obstruction_pin: D8
  dry_contact_open_pin: D5
  dry_contact_close_pin: D6
  dry_contact_light_pin: D3

web_server:

esphome:
  name: "ratgdov25i-885dfd"
  friendly_name: ${friendly_name}
  name_add_mac_suffix: false
  project:
    name: ratgdo.esphome
    version: "2.5i"

esp8266:
  board: d1_mini
  restore_from_flash: true

dashboard_import:
  package_import_url: github://ratgdo/esphome-ratgdo/v25iboard_secplusv1.yaml@main

packages:
  remote_package:
    url: https://github.com/ratgdo/esphome-ratgdo
    files: [base_secplusv1.yaml]
    refresh: 1s

# Sync time with Home Assistant.
time:
  - platform: homeassistant
    id: homeassistant_time

api:
  id: api_server

improv_serial:

wifi:
  ap:

logger:

I can go to the web interface and everything works there to toggle the door and do everything, I just don’t have any control through Home Assistant. Also, when I go to the States tab under Developer tools and search for ratgdo, everything there is showing as unavailable as well.

Can someone guide me on the path to getting this working in HA again?

Where does Home Assistant derive this from:

I have tried to change the id_prefix to match that, but that didn’t help. ESPHome sees the device and tells me that it is online. I can push edits to it OTA, but I just can’t get HA to recognize it. Would it work to delete the device completely in HA and have it rediscover the device? I have the ability to upload a new configuration OTA through the web interface if needed, I just don’t want to have to fully reflash it plugged in because it is a pain in the a$$ to change the boot mode.

For those that may stumble on this looking for the same solution, I figured this out.
Go to Settings > Devices & services and click on ESPHome.
image

Find your ratgdo in the list and click the 3 dots next to Configure and then click Delete.

Doing this is apparently what deletes the states. Then I re-uploaded the config in ESPHome. Once I did that and went back to Settings > Devices & services, the ratgdo showed up as a new device. I configured it from there and it is working now.