From 16614284171c3320c3f89c5f588d12cbb369e585 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 25 Nov 2019 00:06:48 +0100 Subject: [PATCH] #80: kwargs on start_conversation for extra parameters --- platypush/plugins/assistant/echo/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platypush/plugins/assistant/echo/__init__.py b/platypush/plugins/assistant/echo/__init__.py index ce5498a49b..ff52bf4a81 100644 --- a/platypush/plugins/assistant/echo/__init__.py +++ b/platypush/plugins/assistant/echo/__init__.py @@ -43,14 +43,14 @@ class AssistantEchoPlugin(AssistantPlugin): * **avs** (``pip install avs``) """ - def __init__(self, avs_config_file=DEFAULT_CONFIG_FILE, language='en-US', **kwargs): + def __init__(self, avs_config_file=DEFAULT_CONFIG_FILE, **kwargs): """ :param avs_config_file: AVS credentials file - default: ~/.avs.json. If the file doesn't exist then an instance of the AVS authentication service will be spawned. You can login through an Amazon account either in the spawned browser window, if available, or by opening http://your-ip:3000 in the browser on another machine. """ - super().__init__(language=language, **kwargs) + super().__init__(**kwargs) if not avs_config_file or not os.path.isfile(avs_config_file): auth(None, avs_config_file) @@ -108,7 +108,7 @@ class AssistantEchoPlugin(AssistantPlugin): return _callback @action - def start_conversation(self): + def start_conversation(self, **kwargs): """ Programmatically start a conversation with the assistant """