Bugfix stack trace from api (#5332)

This commit is contained in:
Pascal Vizeli authored and Paulus Schoutsen committed 2017-01-15 08:36:24 -08:00
1 parent c458ee29f2
commit d7d428119b
1 file changed
+3
+3
View File
@@ -133,6 +133,9 @@ class APIEventStream(HomeAssistantView):
except asyncio.TimeoutError:
yield from to_write.put(STREAM_PING_PAYLOAD)
except asyncio.CancelledError:
_LOGGER.debug('STREAM %s ABORT', id(stop_obj))
finally:
_LOGGER.debug('STREAM %s RESPONSE CLOSED', id(stop_obj))
unsub_stream()