Consider core running while starting (#2858)
This commit is contained in:
parent
244f60d6cd
commit
8088322c43
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ class HomeAssistant(object):
|
|||
@property
|
||||
def is_running(self) -> bool:
|
||||
"""Return if Home Assistant is running."""
|
||||
return self.state == CoreState.running
|
||||
return self.state in (CoreState.starting, CoreState.running)
|
||||
|
||||
def start(self) -> None:
|
||||
"""Start home assistant."""
|
||||
|
|
Loading…
Add table
Reference in a new issue