Remove CoreState.starting#6194
Conversation
There was a problem hiding this comment.
No need to clear the cache if cache is just an empty dict
08597c3 to
5b7428c
Compare
There was a problem hiding this comment.
Enforce that when we're running, we don't restore.
There was a problem hiding this comment.
All paths ensure _load_restore_cache is set.
5b7428c to
4ae1d75
Compare
|
I like this state and it can sugestion that we are in bootstrap. I think we can use that also in future. Why we not use starting on HomeAssistant.init and after call hass.start in is in state running (like it is)? So we know that the start is not calling jet and we stay inside bootstrap process. |
|
@pvizeli in that case we should also change
|
|
👍 realy greate idea. Since we are async everey state is finally and can not revert. So we loop over this state flow and know where we stay inside processs. I'm allready thinking to future for splitung up into multiproccesing. |
Followup to #6189. Should not go into 0.39.
Hass has an enum for states. One of them is CoreState.starting. However, due to the way the system is setup, we will never be in this state and neither do we have any code that depends on it.