projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ran black code formatter on everything.
[python_utils.git]
/
google_assistant.py
diff --git
a/google_assistant.py
b/google_assistant.py
index 49c08d3c5efded9bc61e8f647d4c1deff98f5768..75ca6432cf76b9f84506aa549855e5cec25e1844 100644
(file)
--- a/
google_assistant.py
+++ b/
google_assistant.py
@@
-21,14
+21,14
@@
parser.add_argument(
type=str,
default="http://kiosk.house:3000",
metavar="URL",
type=str,
default="http://kiosk.house:3000",
metavar="URL",
- help="How to contact the Google Assistant bridge"
+ help="How to contact the Google Assistant bridge"
,
)
parser.add_argument(
"--google_assistant_username",
type=str,
metavar="GOOGLE_ACCOUNT",
default="scott.gasch",
)
parser.add_argument(
"--google_assistant_username",
type=str,
metavar="GOOGLE_ACCOUNT",
default="scott.gasch",
- help="The user account for talking to Google Assistant"
+ help="The user account for talking to Google Assistant"
,
)
)
@@
-105,7
+105,9
@@
def ask_google(cmd: str, *, recognize_speech=True) -> GoogleResponse:
audio_transcription=audio_transcription,
)
else:
audio_transcription=audio_transcription,
)
else:
- message = f'HTTP request to {url} with {payload} failed; code {r.status_code}'
+ message = (
+ f'HTTP request to {url} with {payload} failed; code {r.status_code}'
+ )
logger.error(message)
return GoogleResponse(
success=False,
logger.error(message)
return GoogleResponse(
success=False,