Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.

Commit 5f25de8

Browse files
committed
Makes custom device action keys uppercase
Bug: 79475741 Change-Id: Ic9bca9d6e3fcd5b75bbd8f79fae2a7c70455d021
1 parent 5b8acea commit 5f25de8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

google-assistant-sdk/actions.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,21 +62,21 @@
6262
"name": "$Speed",
6363
"entities": [
6464
{
65-
"key": "slowly",
65+
"key": "SLOWLY",
6666
"synonyms": [
6767
"slowly",
6868
"slow"
6969
]
7070
},
7171
{
72-
"key": "normally",
72+
"key": "NORMALLY",
7373
"synonyms": [
7474
"normally",
7575
"regular"
7676
]
7777
},
7878
{
79-
"key": "quickly",
79+
"key": "QUICKLY",
8080
"synonyms": [
8181
"quickly",
8282
"fast",
@@ -86,4 +86,4 @@
8686
]
8787
}
8888
]
89-
}
89+
}

google-assistant-sdk/googlesamples/assistant/grpc/pushtotalk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,9 @@ def onoff(on):
415415
def blink(speed, number):
416416
logging.info('Blinking device %s times.' % number)
417417
delay = 1
418-
if speed == "slowly":
418+
if speed == "SLOWLY":
419419
delay = 2
420-
elif speed == "quickly":
420+
elif speed == "QUICKLY":
421421
delay = 0.5
422422
for i in range(int(number)):
423423
logging.info('Device is blinking.')

0 commit comments

Comments
 (0)