From 8088322c43dda6a61dab99ba0f0a3001aa018992 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Wed, 17 Aug 2016 18:58:00 -0700 Subject: [PATCH] Consider core running while starting (#2858) --- homeassistant/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/core.py b/homeassistant/core.py index ccd8a971f61..b77d8356a35 100644 --- a/homeassistant/core.py +++ b/homeassistant/core.py @@ -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."""