Skip to content

Commit

Permalink
Added sentences for cancel all alert "here" (#2673)
Browse files Browse the repository at this point in the history
  • Loading branch information
witold-gren authored Nov 27, 2024
1 parent 3370ff9 commit 6d59759
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sentences/pl/homeassistant_HassCancelAllTimers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,21 @@ language: pl
intents:
HassCancelAllTimers:
data:
# All timers
- sentences:
- "<timer_cancel> <all>[ moje] <timer>"

# All timers in area
- sentences:
- "<timer_cancel> <all>[ moje] <timer> <area>"
- "<timer_cancel> <area> <all>[ moje] <timer>"
- "<area> <timer_cancel> <all>[ moje] <timer>"
response: area

# All timers here (context awareness)
- sentences:
- "<timer_cancel> <here> <all>[ moje] <timer>"
- "<timer_cancel> <all>[ moje] <timer> <here>"
requires_context:
area:
slot: true
12 changes: 12 additions & 0 deletions tests/pl/homeassistant_HassCancelAllTimers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,15 @@ tests:
- Kuchni
- Kuchnia
response: Nie anulowano żadnego minutnika w kuchni

- sentences:
- "wyłącz tutaj wszystkie minutniki"
- "anuluj wszystkie moje minutniki w tym pokoju"
- "przerwij w tym pomieszczeniu wszystkie moje minutniki"
intent:
name: HassCancelAllTimers
context:
area: Kuchni
slots:
area: Kuchni
response: Nie anulowano żadnego minutnika

0 comments on commit 6d59759

Please sign in to comment.