Skip to content

Commit

Permalink
Fixed bug (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
DEADSEC-SECURITY authored Dec 16, 2022
1 parent 01c6c0c commit efcbc17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lambda/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ def handle(self, handler_input):
logger.info('Session Ended Request Handler triggered')
ha_obj = HomeAssistant(handler_input)
reason = handler_input.request_envelope.request.reason
if reason == SessionEndedReason.EXCEEDED_MAX_REPROMPTS:
if reason == SessionEndedReason.EXCEEDED_MAX_REPROMPTS or reason == SessionEndedReason.USER_INITIATED:
ha_obj.post_ha_event(RESPONSE_NONE, RESPONSE_NONE)

return handler_input.response_builder.response
Expand Down

0 comments on commit efcbc17

Please sign in to comment.