Snips - (fix) removed endSession mqtt response on error and unknown intents (#11908)

* Remove snips endSession response on unknownIntent

* Removed snips_response for unknown and error.
This commit is contained in:
tschmidty69 2018-01-25 01:50:36 -05:00 committed by Paulus Schoutsen
parent ffe832763d
commit 27edbe5c0f

View File

@ -106,8 +106,8 @@ def async_setup(hass, config):
request['intent']['intentName']) request['intent']['intentName'])
except intent.IntentError: except intent.IntentError:
_LOGGER.exception("Error while handling intent: %s.", intent_type) _LOGGER.exception("Error while handling intent: %s.", intent_type)
snips_response = "Error while handling intent"
if snips_response:
notification = {'sessionId': request.get('sessionId', 'default'), notification = {'sessionId': request.get('sessionId', 'default'),
'text': snips_response} 'text': snips_response}