Better error reporting remote classes
This commit is contained in:
1 parent
c659be7e17
commit
fed36d2cd0
2 files changed
+11
-6
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user