Skip to content

Commit

Permalink
[SK]- fix sk test failures (#2858)
Browse files Browse the repository at this point in the history
* [SK]- fix sk test failures

* [SK]- fix sk haonoff
  • Loading branch information
LubosKadasi authored Jan 9, 2025
1 parent 940f35b commit 5facee9
Show file tree
Hide file tree
Showing 12 changed files with 52 additions and 130 deletions.
4 changes: 2 additions & 2 deletions responses/sk/HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ responses:
fans_ventilation: "Vetranie {{ slots.area }} bolo ukončené"
fans_area: "Ventilátory v {{ slots.area }} boli vypnuté"
cover: "Zatváram {{ slots.name }}"
cover_area: "Zatváram v {{ slots.area }}"
cover_area: "Zatváram {{ slots.name }} v {{ slots.area }}"
garage: "Zatváram {{ slots.name }}"
cover_device_class: "Zatváram {{ slots.device_class }}"
cover_device_class: "Zatváram {{ slots.name }}"
4 changes: 2 additions & 2 deletions responses/sk/HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ responses:
fans_ventilation: "Vetranie {{ slots.area }} bolo spustené"
fans_area: "Ventilátory v {{ slots.area }} boli zapnuté"
cover: "Otváram {{ slots.name }}"
cover_area: "Otváram v {{ slots.area }}"
cover_area: "Otváram {{ slots.name }} v {{ slots.area }}"
garage: "Otváram {{ slots.name }}"
cover_device_class: "Otváram {{ slots.device_class }}"
cover_device_class: "Otváram {{ slots.name }}"
2 changes: 1 addition & 1 deletion sentences/sk/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ lists:
expansion_rules:
in: "(v|vo|na)"
name: "{name}"
area: "[<in>] {area}"
area: "[<in> ]{area}"
what_is: "((ak(á|é|ý|o)[ je])|je)"
is: "(je|sú)"
any: "nejak(ý|á|é)"
Expand Down
8 changes: 5 additions & 3 deletions sentences/sk/cover_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,20 @@ intents:
HassTurnOff:
data:
- sentences:
- <close> garáž
- <close> garážovú bránu
- <close> <name>
response: cover_device_class
slots:
device_class: garage
domain: cover
name: <name>
- sentences:
- <close> (rolety|žalúzie|záves[y]|záclon(u|y)) <area>
- <close> <name> <area>
response: cover_area
slots:
device_class:
- blind
- curtain
- shutter
domain: cover
area: <area>
name: <name>
7 changes: 4 additions & 3 deletions sentences/sk/cover_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@ intents:
HassTurnOn:
data:
- sentences:
- <open> garáž
- <open> garážovú bránu
- <open> <name>
response: cover_device_class
slots:
device_class: garage
domain: cover
name: <name>
- sentences:
- <open> (rolety|žalúzie|záves[y]|záclon(u|y)) <area>
- <open> <name> <area>
response: cover_area
slots:
device_class:
- blind
- curtain
- shutter
domain: cover
name: <name>
15 changes: 9 additions & 6 deletions sentences/sk/homeassistant_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ intents:
data:
- sentences:
- <turn_off> <name>[ <area>]
- sentences:
- <close> {name}
response: cover
- sentences:
- <close> {name} <area>
response: cover_area
excludes_context:
domain:
- binary_sensor
- cover
- lock
- scene
- script
- sensor
- valve
15 changes: 9 additions & 6 deletions sentences/sk/homeassistant_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ intents:
data:
- sentences:
- <turn_on> <name>[ <area>]
- sentences:
- <open> {name}
response: cover
- sentences:
- <open> {name} <area>
response: cover_area
excludes_context:
domain:
- binary_sensor
- cover
- lock
- scene
- script
- sensor
- valve
10 changes: 0 additions & 10 deletions tests/sk/_test_failures.yaml

This file was deleted.

12 changes: 6 additions & 6 deletions tests/sk/cover_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,28 @@ tests:
slots:
device_class: garage
domain: cover
response: Zatváram garage
name: garáž
response: Zatváram garáž
- sentences:
- zatvor garážovú bránu
intent:
name: HassTurnOff
slots:
device_class: garage
domain: cover
response: Zatváram garage
name: garážovú bránu
response: Zatváram garážovú bránu
- sentences:
- zatvor rolety v kuchyni
intent:
name: HassTurnOff
slots:
domain: cover
area:
- kuchyňa
- kuchyni
- kuchyne
- kuchyňu
device_class:
- blind
- curtain
- shutter
response: Zatváram v kuchyni
name: rolety
response: Zatváram rolety v kuchyni
26 changes: 12 additions & 14 deletions tests/sk/cover_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,58 +7,56 @@ tests:
slots:
device_class: garage
domain: cover
response: Otváram garage
name: garážovú bránu
response: Otváram garážovú bránu
- sentences:
- otvor rolety v kuchyni
intent:
name: HassTurnOn
slots:
area:
- kuchyňa
- kuchyni
- kuchyne
- kuchyňu
device_class:
- blind
- curtain
- shutter
domain: cover
response: Otváram v kuchyni
name: rolety
response: Otváram rolety v kuchyni
- sentences:
- Otvor garáž
intent:
name: HassTurnOn
slots:
domain: cover
device_class: garage
response: Otváram garage
name: garáž
response: Otváram garáž
- sentences:
- Odostri závesy v obývačke
- odostri závesy v obývačke
intent:
name: HassTurnOn
slots:
domain: cover
area:
- obývačka
- obývačke
- obývačku
- obývačky
device_class:
- blind
- curtain
- shutter
name: závesy
response: Otváram závesy v obývačke
- sentences:
- Vytiahni rolety v obývačke
- vytiahni rolety v obývačke
intent:
name: HassTurnOn
slots:
domain: cover
area:
- obývačka
- obývačke
- obývačku
- obývačky
device_class:
- blind
- curtain
- shutter
name: rolety
response: Otváram rolety v obývačke
60 changes: 1 addition & 59 deletions tests/sk/homeassistant_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,63 +6,5 @@ tests:
name: HassTurnOff
slots:
name:
- nočná lampa
- nočná lampu
- nočná lampy
- nočná lampe
- nočnú lampa
- nočnú lampu
- nočnú lampy
- nočnú lampe
- nočnej lampa
- nočnej lampu
- nočnej lampy
- nočnej lampe
- sentences:
- Zatvor bránu
intent:
name: HassTurnOff
slots:
name:
- brána
- bránu
- sentences:
- Zavri bránu pred vchodom
intent:
name: HassTurnOff
slots:
area:
- pred vchodom
name:
- brána
- bránu
# - sentences:
# - Zavri garáž
# intent:
# name: HassTurnOff
# slots:
# name: garáž
# - sentences:
# - Zastri závesy v obývačke
# intent:
# name: HassTurnOff
# slots:
# area:
# - obývačka
# - obývačke
# - obývačku
# - obývačky
# name: závesy
# - sentences:
# - Stiahni rolety v obývačke
# intent:
# name: HassTurnOff
# slots:
# area:
# - obývačka
# - obývačke
# - obývačku
# - obývačky
# name:
# - rolety
# - roletu
response: Vypínam nočnú lampu
19 changes: 1 addition & 18 deletions tests/sk/homeassistant_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,4 @@ tests:
slots:
name:
- stropný ventilátor
- sentences:
- Otvor bránu
intent:
name: HassTurnOn
slots:
name:
- brána
- bránu
- sentences:
- Otvor bránu pred vchodom
intent:
name: HassTurnOn
slots:
area:
- pred vchodom
name:
- brána
- bránu
response: Zapínam stropný ventilátor

0 comments on commit 5facee9

Please sign in to comment.