What happened?
There was a dangling component from the API and the component graph initialization failed.
What did you expect instead?
Log a warning and build the graph without that component.
Extra information
In addition to this, the status of the component graph should be available, so that apps can decide whether they want to proceed based on how they judge the situation.
It could for example, be a microgrid.config_status() method that provides details about issues in the component graph, like a list of categories for dangling components, there are battery inverters without batteries, etc.