mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Consider core running while starting (#2858)
This commit is contained in:
parent
244f60d6cd
commit
8088322c43
@ -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…
x
Reference in New Issue
Block a user