Home Assistant URL is grayed out, cannot change

So… A few moons ago I configured an external URL on my home assistant, which I now want to change. And it does not go well:

I indeed do have config stored in ‘configuration.yaml’ under the ‘homeassistant’ key. There is nothing that configures external URL though. And home asssitant does have external URL configured somewhere, but definitely not from configuration.yaml.

I can certainly disable configuration.yaml, then change URL, then put it all back. Or even find that huge JSON blob where configuration is stored and edit it directly. But perhaps someone could point me to how can I define external URL directly in yaml so that I don’t have to deal with this ever again? Also, DNS, could I define DNS there, my instance loses DNS settings every restart and then a bunch of stuff breaks until i manually put it back

Had the same exact issue as you did, so I simply when into .storage folder inside the config folder and removed the 2 lines corresponding to internal_url and external_url from file core.config.

Restarted HA and all was OK. Settings are still greyed out, but the values in Internal URL and External URL are now correct.

Hope this helps.