Skip to content

Commit c2abc12

Browse files
FlekerGerrit Code Review
authored and
Gerrit Code Review
committed
Merge "Makes custom device action keys uppercase"
2 parents bbbadd1 + 5f25de8 commit c2abc12

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

google-assistant-sdk/actions.json

+4-4
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

+2-2
Original file line numberDiff line numberDiff line change
@@ -429,9 +429,9 @@ def onoff(on):
429429
def blink(speed, number):
430430
logging.info('Blinking device %s times.' % number)
431431
delay = 1
432-
if speed == "slowly":
432+
if speed == "SLOWLY":
433433
delay = 2
434-
elif speed == "quickly":
434+
elif speed == "QUICKLY":
435435
delay = 0.5
436436
for i in range(int(number)):
437437
logging.info('Device is blinking.')

0 commit comments

Comments
 (0)