-
Notifications
You must be signed in to change notification settings - Fork 578
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BG] Add current time and add to shopping list (#2504)
* [BG] Add current time and add to shopping list * add tests * fix tests * test tweak
- Loading branch information
1 parent
31dae61
commit d7cb47f
Showing
6 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
language: bg | ||
responses: | ||
intents: | ||
HassGetCurrentTime: | ||
default: > | ||
{{ slots.time.hour }} часа | ||
{% if slots.time.minute > 0: %} | ||
и | ||
{{ slots.time.minute }} {{ 'минута' if slots.time.minute == 1 else 'минути' }} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
language: bg | ||
responses: | ||
intents: | ||
HassShoppingListAddItem: | ||
item_added: "Добавих {{ slots.item }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
language: bg | ||
intents: | ||
HassGetCurrentTime: | ||
data: | ||
- sentences: | ||
- "(<what_is>|кажи ми) [колко е] [часът]" | ||
- "колко е [часът] [[точно] сега]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
language: bg | ||
intents: | ||
HassShoppingListAddItem: | ||
data: | ||
- sentences: | ||
- "добави <item> (в|към) <my_list>" | ||
- "сложи <item> (в|към) <my_list>" | ||
- "прибави <item> (в|към) <my_list>" | ||
- "запиши <item> (в|към) <my_list>" | ||
response: item_added | ||
expansion_rules: | ||
my_list: "[списъка|списъка ми] [с|със|за] [покупки|пазаруване]" | ||
item: "{shopping_list_item:item}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
language: bg | ||
tests: | ||
- sentences: | ||
- "колко е часът" | ||
- "колко е часът точно сега" | ||
- "кажи ми колко е часът" | ||
intent: | ||
name: HassGetCurrentTime | ||
response: 1 часа и 2 минути |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
language: bg | ||
tests: | ||
- sentences: | ||
- "Добави ябълки към списъка" | ||
- "Сложи ябълки в списъка ми" | ||
- "Прибави ябълки към списъка с покупки" | ||
- "Запиши ябълки в списъка за пазаруване" | ||
intent: | ||
name: HassShoppingListAddItem | ||
slots: | ||
item: "ябълки" | ||
response: "Добавих ябълки" |