Ensure frontend is available if integrations fail to start - Part 1 of 2 (#36093)

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
This commit is contained in:
J. Nick KostonandPaulus Schoutsen authored and GitHub committed 2020-05-28 21:09:07 -07:00
1 parent 9c45115468
commit fbe7b4ddfa
13 files changed
+173 -63

No files matched your search

@@ -165,7 +165,9 @@ class WebSocketHandler:
EVENT_HOMEASSISTANT_STOP, handle_hass_stop
)
self._writer_task = self.hass.async_create_task(self._writer())
# As the webserver is now started before the start
# event we do not want to block for websocket responses
self._writer_task = self.hass.loop.create_task(self._writer())
auth = AuthPhase(self._logger, self.hass, self._send_message, request)
connection = None