Also, it looks like you restarted HA without doing a config check first. That’s a bad practice.
In this case it worked out OK because the error was able to be ignored and HA could start back up and throw that “invalid config” box. But there are times that it can’t do that and it then makes troubleshooting and restarting after you fix the issue a lot harder.
Do yourself a favor and always do a config check after saving changes and before restarting HA.