diff options
| author | Scott Gasch <[email protected]> | 2022-02-07 10:55:09 -0800 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2022-02-07 10:55:09 -0800 |
| commit | 6e8e3458d9641394b8f061d55ba569a72e6a8493 (patch) | |
| tree | 86f943a3c91b9e885b1a9f06fe9fc1fe264b5258 /google_assistant.py | |
| parent | 43635064329197b2f9e822d15e7315ac59141207 (diff) | |
Adds unittest.
Diffstat (limited to 'google_assistant.py')
| -rw-r--r-- | google_assistant.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/google_assistant.py b/google_assistant.py index ec5f6a4..b0aabf3 100644 --- a/google_assistant.py +++ b/google_assistant.py @@ -70,6 +70,7 @@ def ask_google(cmd: str, *, recognize_speech=True) -> GoogleResponse: audio_transcription: Optional[str] = "" if r.status_code == 200: j = r.json() + logger.debug(j) success = bool(j["success"]) response = j["response"] if success else j["error"] if success: |
