How to flash esp home via IP address

I think i messed up my esphome configuration a bit. The device is online (can be pinged), but ESP Home dashboard does not see it, as its looking for a device with a hostname bathoom-main, while its hostname is bathroom_main with an underscore.
Now I haven’t configured web access for the device, so cannot connect to it that way. Is there some way to flash the new firmware via a POST HTTPS request or something similar?

https://esphome.io/components/wifi.html

Use the “use_address” option to specify an IP address for flashing instead of hostname. Then remove it from your YAML (since I’m guessing in your setup it will likely change in the future).