Old esphome device. Need to find configuration

I have an old esphome device that i setup before homeassistant, and would like to integrate it into home assistant. I can view the web interface and update it, but I dont have the original configuration files for it. Is it possible to see this at all? some kind of api that will just let me view it? Dont want to take it apart to see what pins are connected to what.

Thanks

No you can’t find the yaml from the firmware. What is the device?

just a generic esp32

rip. apparently I just ‘added’ it to homeassistant, it did an ota, and wiped the settings. I cant break anything by brute forcing the pin settings. only a temp sensor and 2 relays.

Adding to ha does not ota it.