-
Notifications
You must be signed in to change notification settings - Fork 575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SK] implement cancel & cancelAll timer intents #2846
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
1949b23
implemented cancel timer intents + some minor fixes in start timer
mustul c9c11ae
Merge branch 'main' into cancel-timer-intents
mustul 3312a20
adjusted word ordering for cancel all timers intent response
mustul ac2b655
Merge branch 'main' into cancel-timer-intents
mustul File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,25 @@ | ||
--- | ||
language: sk | ||
responses: | ||
intents: | ||
HassCancelAllTimers: | ||
default: > | ||
{% if slots.canceled < 1: %} | ||
Žiadny časovač nebol zrušený. | ||
{% elif slots.canceled == 1: %} | ||
1 časovač zrušený. | ||
{% elif slots.canceled > 1 and slots.canceled < 5 : %} | ||
{{ slots.canceled }} časovače zrušené. | ||
{% else: %} | ||
{{ slots.canceled }} časovačov zrušených | ||
{% endif %} | ||
area: > | ||
{% if slots.canceled < 1: %} | ||
Žiadny časovač v {{ slots.area }} nebol zrušený. | ||
{% elif slots.canceled == 1: %} | ||
1 časovač v {{ slots.area }} bol zrušený. | ||
{% elif slots.canceled > 1 and slots.canceled < 5: %} | ||
{{ slots.canceled }} časovače v {{ slots.area }} boli zrušené. | ||
{% else: %} | ||
{{ slots.canceled }} časovačov v {{ slots.area }} bolo zrušených. | ||
{% 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: sk | ||
responses: | ||
intents: | ||
HassCancelTimer: | ||
default: "Časovač zrušený" |
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
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
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: "sk" | ||
intents: | ||
HassCancelAllTimers: | ||
data: | ||
- sentences: | ||
- "<timer_cancel> <all> <timer_type>" | ||
- sentences: | ||
- "<timer_cancel> <all> <timer_type> <in> <area>" | ||
response: area |
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: "sk" | ||
intents: | ||
HassCancelTimer: | ||
data: | ||
- sentences: | ||
- "<timer_cancel> <timer_start> <timer_type> [ {timer_name:name}]" | ||
- "<timer_cancel> <timer_type> na <timer_start>" | ||
- "<timer_cancel> {area} <timer_type>" | ||
- "<timer_cancel> <timer_type> <in> <area>" | ||
- "<timer_cancel> <timer_type>[ {timer_name:name}[ na <timer_start>]]" |
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
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
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,17 @@ | ||
--- | ||
language: sk | ||
tests: | ||
- sentences: | ||
- "zruš všetky časovače" | ||
intent: | ||
name: HassCancelAllTimers | ||
response: "2 časovače zrušené." | ||
- sentences: | ||
- "zruš všetky časovače v kuchyni" | ||
intent: | ||
name: HassCancelAllTimers | ||
slots: | ||
area: | ||
- "kuchyni" | ||
#This is not correct as there is one timer defined for a kitchen but must be like this for tests to pass. It is caused by not correctly resolving area aliases in timer processing for tests. | ||
response: "Žiadny časovač v kuchyni nebol zrušený." |
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,65 @@ | ||
language: sk | ||
tests: | ||
- sentences: | ||
- "zruš časovač" | ||
- "zruš stopky" | ||
intent: | ||
name: HassCancelTimer | ||
response: "Časovač zrušený" | ||
- sentences: | ||
- "zruš časovač na 5 minút" | ||
- "zruš 5 minútový časovač" | ||
intent: | ||
name: HassCancelTimer | ||
slots: | ||
start_minutes: 5 | ||
- sentences: | ||
- "zruš časovač pizza na 5 minút" | ||
- "zruš 5 minútový časovač pizza" | ||
intent: | ||
name: HassCancelTimer | ||
slots: | ||
start_minutes: 5 | ||
name: pizza | ||
response: "Časovač zrušený" | ||
- sentences: | ||
- "zruš kuchynský časovač" | ||
- "zruš časovač v kuchyni" | ||
intent: | ||
name: HassCancelTimer | ||
slots: | ||
area: | ||
- kuchynský | ||
- kuchyni | ||
response: "Časovač zrušený" | ||
- sentences: | ||
- "zruš časovač pizza" | ||
intent: | ||
name: HassCancelTimer | ||
slots: | ||
name: pizza | ||
response: "Časovač zrušený" | ||
- sentences: | ||
- "zruš časovač na pol minúty" | ||
intent: | ||
name: HassCancelTimer | ||
slots: | ||
start_seconds: 30 | ||
response: "Časovač zrušený" | ||
- sentences: | ||
- "zruš časovač na 1 a pol minúty" | ||
- "zruš časovač na minútu a pol" | ||
intent: | ||
name: HassCancelTimer | ||
slots: | ||
start_seconds: 30 | ||
start_minutes: 1 | ||
response: "Časovač zrušený" | ||
- sentences: | ||
- "zruš časovač na minútu" | ||
- "zruš minútový časovač" | ||
intent: | ||
name: HassCancelTimer | ||
slots: | ||
start_minutes: 1 | ||
response: "Časovač zrušený" |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<area>
už má optional inarea: "[<in> ]{area}"
ale to je ok