Skip to content

Commit

Permalink
[IT] Add alternative name for cover blinds (#1929)
Browse files Browse the repository at this point in the history
  • Loading branch information
deliantwo authored Mar 12, 2024
1 parent cdbf8c5 commit 75f3bea
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sentences/it/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ lists:
values:
- in: "tend(a|e) da sole"
out: awning
- in: "persian(a|e)"
- in: "(persian(a|e)|oscurant(e|i))"
out: blind
- in: "tend(a|e)"
out: curtain
Expand Down Expand Up @@ -316,7 +316,7 @@ expansion_rules:
set: "(impost(a|are) | cambi(a|are) | mett(i|ere) | modific(a|are))"
temp: "[la] (temperatura)"
temperature: "{temperature}[°| gradi] [{temperature_unit}]"
cover: "(tend(a|e)[ da sole]|serrand(a|e)|tapparell(a|e)|persian(a|e)|port(a|e)|saracinesc(a|he)|venezian(a|e)|cancell(o|i)|finestr(a|e))"
cover: "(tend(a|e)[ da sole]|serrand(a|e)|tapparell(a|e)|persian(a|e)|port(a|e)|saracinesc(a|he)|venezian(a|e)|cancell(o|i)|finestr(a|e)|oscurant(e|i))"
climate: "(clima|climatizzator(e|i)|condizionator(e|i)|aria condizionata)"
fan: "(ventol(a|e) | ventilator(e|i) | ventilazione | climatizzator(e|i) | condizionator(e|i))"
all: "tutt(o|e|i|a)"
Expand Down
11 changes: 11 additions & 0 deletions tests/it/cover_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@ tests:
domain: "cover"
response: "Ho chiuso tutte le tende"

- sentences:
- "chiudi oscurante in cucina"
- "abbassa oscurante cucina"
intent:
name: "HassTurnOff"
slots:
area: "Cucina"
device_class: "blind"
context:
domain: "cover"

- sentences:
- "chiudi tutte le tapparelle in soggiorno"
- "abbassa tapparelle soggiorno"
Expand Down
12 changes: 12 additions & 0 deletions tests/it/cover_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ tests:
device_class: "curtain"
domain: "cover"
response: "Ho aperto tutte le tende"

- sentences:
- "apri oscurante in bagno"
- "alza oscurante bagno"
intent:
name: "HassTurnOn"
slots:
area: "Bagno"
device_class: "blind"
context:
domain: "cover"

- sentences:
- "apri le tapparelle nel bagno"
intent:
Expand Down

0 comments on commit 75f3bea

Please sign in to comment.