Skip to content
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

[EN] Add sentence option "an" #2847

Merged
merged 9 commits into from
Jan 20, 2025
4 changes: 2 additions & 2 deletions sentences/en/homeassistant_HassStartTimer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ intents:
- "timer for <timer_duration> (named|called) {timer_name:name}"
- "<timer_duration> timer"
- "<timer_duration> timer for {timer_name:name}"
- "<timer_set> [a|the|my] <timer_duration> timer"
- "<timer_set> [a|the|my] timer for <timer_duration>"
- "<timer_set> [a|the|my] <timer_duration> timer (named|called|for) {timer_name:name}"
- "<timer_set> [a|an|the|my] <timer_duration> timer (named|called|for) {timer_name:name}"
- "<timer_set> [a|an|the|my] <timer_duration> timer"
- "<timer_set> [a|the|my] timer (named|called) {timer_name:name} for <timer_duration>"
- "<timer_set> [a|the|my] timer for <timer_duration> (named|called) {timer_name:name}"
- sentences:
Expand Down
25 changes: 25 additions & 0 deletions tests/en/homeassistant_HassStartTimer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,28 @@ tests:
- "open the garage door"
- "open the garage door "
response: Command will be executed in 5 minutes

- sentences:
- "start an 11 minute timer"
- "set an 11 minute timer"
intent:
name: HassStartTimer
context:
area: Living Room
slots:
minutes: 11
response: Timer set for 11 minutes

- sentences:
- "start an 11 minute timer named pizza"
- "set an 11 minute timer for pizza"
intent:
name: HassStartTimer
context:
area: Living Room
slots:
minutes: 11
name:
- "pizza "
- "pizza"
response: Timer set for 11 minutes named pizza
Loading