Changed assistant stop_conv logic on match

This commit is contained in:
Fabio Manganiello 2018-01-15 13:37:48 +01:00
parent 0e6de85b8d
commit f6d16366eb

View file

@ -33,7 +33,7 @@ class SpeechRecognizedEvent(AssistantEvent):
def matches_condition(self, condition):
result = super().matches_condition(condition)
if result.is_match and self._assistant and not condition.priority:
if result.is_match and self._assistant and 'phrase' in condition.args:
self._assistant.stop_conversation()
return result