Fix homeassistant.start trigger (#8220)

* Fix homeassistant.start trigger

* ooops

* set sleep(0) just before changing to running state, revert async_block_till_done changes
This commit is contained in:
Eugenio Panadero 2017-06-27 10:36:00 +02:00 committed by Pascal Vizeli
parent 88b9503962
commit e39f7d3ef5

View file

@ -181,6 +181,8 @@ class HomeAssistant(object):
'report the following info at http://bit.ly/2ogP58T : %s',
', '.join(self.config.components))
# Allow automations to set up the start triggers before changing state
yield from asyncio.sleep(0, loop=self.loop)
self.state = CoreState.running
_async_create_timer(self)