Consider core running while starting (#2858)

This commit is contained in:
Paulus Schoutsen 2016-08-17 18:58:00 -07:00 committed by GitHub
parent 244f60d6cd
commit 8088322c43

View file

@ -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."""