Better error reporting remote classes

This commit is contained in:
Paulus Schoutsen committed 2015-07-26 00:14:55 -07:00
1 parent c659be7e17
commit fed36d2cd0
2 files changed
+11 -6

No files matched your search

+3 -2
View File
@@ -120,8 +120,9 @@ class HomeAssistant(ha.HomeAssistant):
def start(self):
# Ensure a local API exists to connect with remote
if self.config.api is None:
bootstrap.setup_component(self, 'http')
bootstrap.setup_component(self, 'api')
if not bootstrap.setup_component(self, 'api'):
raise ha.HomeAssistantError(
'Unable to setup local API to receive events')
ha.Timer(self)