mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +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
|
@property
|
||||||
def is_running(self) -> bool:
|
def is_running(self) -> bool:
|
||||||
"""Return if Home Assistant is running."""
|
"""Return if Home Assistant is running."""
|
||||||
return self.state == CoreState.running
|
return self.state in (CoreState.starting, CoreState.running)
|
||||||
|
|
||||||
def start(self) -> None:
|
def start(self) -> None:
|
||||||
"""Start home assistant."""
|
"""Start home assistant."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user