projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve the locking decorators; @synchronized(lock).
[python_utils.git]
/
google_assistant.py
diff --git
a/google_assistant.py
b/google_assistant.py
index 041648ca4f15e9db4ce1b1df2862d948ec450325..b92f443d6744882ddaa56418ed992b39b33c8568 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"
,
)
)
@@
-96,7
+96,7
@@
def ask_google(cmd: str, *, recognize_speech=True) -> GoogleResponse:
logger.exception(e)
msg = 'Unable to parse Google assistant\'s response.'
logger.warning(msg)
logger.exception(e)
msg = 'Unable to parse Google assistant\'s response.'
logger.warning(msg)
- warnings.warn(msg)
+ warnings.warn(msg
, stacklevel=3
)
audio_transcription = None
return GoogleResponse(
success=success,
audio_transcription = None
return GoogleResponse(
success=success,