From 79f7e58ca42c69d020aa56c3a4618408cbd9f791 Mon Sep 17 00:00:00 2001 From: Zhengpeng Hu Date: Wed, 10 Jan 2018 12:34:00 -0800 Subject: [PATCH] google-assistant-sdk/googlesamples/grpc: add missing client type Bug: 71805631 Change-Id: I8a2d42cf42e011375d460a53a03fac6eeaa99344 --- google-assistant-sdk/CHANGELOG.rst | 4 ++++ .../googlesamples/assistant/grpc/pushtotalk.py | 3 ++- google-assistant-sdk/setup.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/google-assistant-sdk/CHANGELOG.rst b/google-assistant-sdk/CHANGELOG.rst index 540f42f..7e6bf3e 100644 --- a/google-assistant-sdk/CHANGELOG.rst +++ b/google-assistant-sdk/CHANGELOG.rst @@ -1,6 +1,10 @@ Changelog ========= +0.4.2 +----- +- Add client type for pushtotalk registration. + 0.4.1 ----- - Update outdated `hotword` sample. diff --git a/google-assistant-sdk/googlesamples/assistant/grpc/pushtotalk.py b/google-assistant-sdk/googlesamples/assistant/grpc/pushtotalk.py index 42b1b63..5b2b4ba 100644 --- a/google-assistant-sdk/googlesamples/assistant/grpc/pushtotalk.py +++ b/google-assistant-sdk/googlesamples/assistant/grpc/pushtotalk.py @@ -388,7 +388,8 @@ def onoff(on): device_id = str(uuid.uuid1()) payload = { 'id': device_id, - 'model_id': device_model_id + 'model_id': device_model_id, + 'client_type': 'SDK_SERVICE' } session = google.auth.transport.requests.AuthorizedSession( credentials diff --git a/google-assistant-sdk/setup.py b/google-assistant-sdk/setup.py index 8e9d833..4a2b7c6 100644 --- a/google-assistant-sdk/setup.py +++ b/google-assistant-sdk/setup.py @@ -39,7 +39,7 @@ def samples_requirements(): setup( name='google-assistant-sdk', - version='0.4.1', + version='0.4.2', author='Google Assistant SDK team', author_email='proppy+assistant-sdk@google.com', description='Samples and Tools the Google Assistant SDK',