From a981372f4de59846856fb14f03bc4719893d5e1d Mon Sep 17 00:00:00 2001 From: Prateek Agrawal Date: Sun, 4 Feb 2018 21:58:44 +0530 Subject: [PATCH 1/2] Added Missing Parameter --- google-assistant-sdk/googlesamples/assistant/library/hotword.py | 1 + 1 file changed, 1 insertion(+) diff --git a/google-assistant-sdk/googlesamples/assistant/library/hotword.py b/google-assistant-sdk/googlesamples/assistant/library/hotword.py index 2960e5d..fe6898b 100644 --- a/google-assistant-sdk/googlesamples/assistant/library/hotword.py +++ b/google-assistant-sdk/googlesamples/assistant/library/hotword.py @@ -55,6 +55,7 @@ def process_event(event, device_id): Args: event(event.Event): The current event to process. + device_id: The device ID of the new instance. """ if event.type == EventType.ON_CONVERSATION_TURN_STARTED: print() From 361f667021c91fdd5a5800bc1d569dddb3bae250 Mon Sep 17 00:00:00 2001 From: Prateek Agrawal Date: Mon, 5 Feb 2018 12:26:32 +0530 Subject: [PATCH 2/2] Update hotword.py --- .../googlesamples/assistant/library/hotword.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/google-assistant-sdk/googlesamples/assistant/library/hotword.py b/google-assistant-sdk/googlesamples/assistant/library/hotword.py index fe6898b..fb8d8af 100644 --- a/google-assistant-sdk/googlesamples/assistant/library/hotword.py +++ b/google-assistant-sdk/googlesamples/assistant/library/hotword.py @@ -55,7 +55,7 @@ def process_event(event, device_id): Args: event(event.Event): The current event to process. - device_id: The device ID of the new instance. + device_id(str): The device ID of the new instance. """ if event.type == EventType.ON_CONVERSATION_TURN_STARTED: print() @@ -81,8 +81,8 @@ def register_device(project_id, credentials, device_model_id, device_id): credentials(google.oauth2.credentials.Credentials): The Google OAuth2 credentials of the user to associate the device instance with. - device_model_id: The registered device model ID. - device_id: The device ID of the new instance. + device_model_id(str): The registered device model ID. + device_id(str): The device ID of the new instance. """ base_url = '/'.join([DEVICE_API_URL, 'projects', project_id, 'devices']) device_url = '/'.join([base_url, device_id])