Skip to content

Commit

Permalink
[RO] Add delayed commands (home-assistant#2207)
Browse files Browse the repository at this point in the history
  • Loading branch information
tetele authored May 31, 2024
1 parent eb82c15 commit 6c75da9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions responses/ro/HassStartTimer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ responses:
intents:
HassStartTimer:
default: "Am pornit temporizatorul"
command: "Mă voi ocupa"
2 changes: 2 additions & 0 deletions sentences/ro/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,8 @@ lists:
to: 100
timer_name:
wildcard: true
timer_command:
wildcard: true

expansion_rules:
# Placeholders
Expand Down
3 changes: 3 additions & 0 deletions sentences/ro/homeassistant_HassStartTimer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ intents:
requires_context:
area:
slot: false
- sentences:
- "({timer_command:conversation_command};((î|i)n|peste) <timer_duration>)"
response: command
12 changes: 12 additions & 0 deletions tests/ro/homeassistant_HassStartTimer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,15 @@ tests:
- "pizza"
- "pizza "
response: Am pornit temporizatorul

- sentences:
- "deschide usa de la garaj peste 5 minute"
- "in 5 minute, deschide usa de la garaj"
intent:
name: HassStartTimer
slots:
minutes: 5
conversation_command:
- "deschide usa de la garaj"
- "deschide usa de la garaj "
response: Mă voi ocupa

0 comments on commit 6c75da9

Please sign in to comment.