Skip to content

Commit

Permalink
HassShoppingListAddItem (#2324)
Browse files Browse the repository at this point in the history
  • Loading branch information
swonge authored Jul 15, 2024
1 parent 7822a83 commit dbd8546
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 4 deletions.
2 changes: 1 addition & 1 deletion responses/zh-hk/HassListAddItem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ language: zh-hk
responses:
intents:
HassListAddItem:
item_added: "Added {{ slots.item }}"
item_added: "加佐 {{ slots.item }}"
5 changes: 5 additions & 0 deletions responses/zh-hk/HassShoppingListAddItem.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: zh-hk
responses:
intents:
HassShoppingListAddItem:
item_added: "加佐 {{ slots.item }}"
11 changes: 11 additions & 0 deletions sentences/zh-hk/shopping_list_HassShoppingListAddItem.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: zh-hk
intents:
HassShoppingListAddItem:
data:
- sentences:
- <add> <item> <to> <my_list>
#- put <item> (on|in)<my_list>
response: item_added
expansion_rules:
my_list: "[ my| the][ shopping] list"
item: "{shopping_list_item:item}"
9 changes: 9 additions & 0 deletions tests/zh-hk/shopping_list_HassShoppingListAddItem.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: zh-hk
tests:
- sentences:
- 加蘋果 到 my shopping list
intent:
name: HassShoppingListAddItem
slots:
item: "蘋果"
response: 加佐 蘋果
6 changes: 3 additions & 3 deletions tests/zh-hk/todo_HassListAddItem.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
language: zh-hk
tests:
- sentences:
- apples 到 my trader joes list
- 蘋果 到 my trader joes list
intent:
name: HassListAddItem
slots:
item: "apples"
item: "蘋果"
name: "Trader Joes"
response: Added apples
response: 加佐 蘋果

0 comments on commit dbd8546

Please sign in to comment.