Failed to call service homeassistant/restart. string indices must be integers

Everything has been fine but now can’t restart HA from Server Management. I get

Failed to call service homeassistant/restart. string indices must be integers

If I call the service homeassistant.restart via Developer Tools I get

Failed to call homeassistant.restart. Unknown error

Where can I look to troubleshoot this?

HA actually seems to run fine and restarts OK on power cycle and no errors showing in configuration.yaml in file editor but Configuration validation seems to just hang with spinning circle.
Can’t see any obvious issue in log.

I haven’t updated integrations recently but have updated Core/OS/Supervisor to latest. Not sure if restart problem started then.

HA Blue
Core 2021.12.10
Supervisor 2021.12.2
OS 7.2

What I did is comment out everything in my configuration.yaml and the my restart worked fine.
I commented out another half my config and commentating till it failed and kept repeating till I narrowed it down to the problem in my configs.

Perhaps yours is also a config issue?

TypeError: means that you are trying to perform an operation on a value whose type is not compatible with that operation. An Iterable is a collection of elements that can be accessed sequentially . In Python, iterable objects are indexed using numbers . When you try to access an iterable object using a string or a float as the index, an error will be returned as TypeError: string indices must be integers. This means that when you’re accessing an iterable object like a string or float value, you must do it using an integer value.

For example, str[hello"] and str[2.1] as indexes. As these are not integers, a TypeError exception is raised. This means that when you’re accessing an iterable object like a string or float value, you must do it using an integer value . If you are accessing items from a dictionary , make sure that you are accessing the dictionary itself and not a key in the dictionary.

Python supports slice notation for any sequential data type like lists, strings , tuples, bytes, bytearrays, and ranges. When working with strings and slice notation, it can happen that a TypeError: string indices must be integers is raised, pointing out that the indices must be integers, even if they obviously are.