Skip to content

Commit

Permalink
[FR] Remove name all slot for french intents (#1861)
Browse files Browse the repository at this point in the history
* Add domain only slot combination

* Remove name: all slot for french intents
  • Loading branch information
piitaya authored Jan 4, 2024
1 parent 59d1b28 commit f487b5e
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 27 deletions.
21 changes: 21 additions & 0 deletions intents.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ HassTurnOn:
- "name"
area_only:
- "area"
domain_only:
- "domain"
area_name:
- "name"
- "area"
Expand Down Expand Up @@ -54,6 +56,25 @@ HassTurnOff:
device_class:
description: "Device class of devices/entities in an area"
required: false
slot_combinations:
name_only:
- "name"
area_only:
- "area"
domain_only:
- "domain"
area_name:
- "name"
- "area"
area_domain:
- "area"
- "domain"
area_device_class:
- "area"
- "device_class"
domain_device_class:
- "domain"
- "device_class"

HassGetState:
supported: true
Expand Down
1 change: 0 additions & 1 deletion sentences/fr/cover_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ intents:
- <ferme> tous (<volets>|<volet>)
response: cover_device_class
slots:
name: all
device_class:
- blind
- curtain
Expand Down
1 change: 0 additions & 1 deletion sentences/fr/cover_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ intents:
- <ouvre> tous [les] (<volets>|<volet>)
response: cover_device_class
slots:
name: all
device_class:
- blind
- curtain
Expand Down
1 change: 0 additions & 1 deletion sentences/fr/fan_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ intents:
- "<eteins> [tous] <ventilateurs> <dans> [[<le>]{area}]"
slots:
domain: fan
name: all
response: fans
- sentences:
- "<eteins> <ventilateur> [<dans>] [[<le>]{area}]"
Expand Down
1 change: 0 additions & 1 deletion sentences/fr/fan_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ intents:
- "<allume> [tous] (<ventilateur> | <ventilateurs>) <dans> [[<le>]{area}]"
slots:
domain: fan
name: all
response: fans
- sentences:
- "<allume> (<ventilateur> | <ventilateurs>) [<dans>] [[<le>]{area}]"
Expand Down
4 changes: 0 additions & 4 deletions sentences/fr/light_HassLightSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ intents:
# Règle les lumieres du bureau avec la luminosité à 50% (Too complex... We should think about removing that)
- "(<allume>|<regle>) [<tous>] [<le>][<lumieres>] [<de>] [<le>]{area} [avec la luminosité|avec la lumière] [à] {brightness}<pourcent>"
response: brightness
slots:
name: all

# brightness (name + area)
- sentences:
Expand Down Expand Up @@ -82,8 +80,6 @@ intents:
- "(<regle>|<allume>) [<tous>] [<le>](<lumiere>|<lumieres>) [<de>] [<le>]{area} [avec la couleur | de couleur | en] {color}"
# Allume le salon en rouge
- "(<regle>|<allume>) [<le>]{area} [avec la couleur | de couleur | en] {color}"
slots:
name: all
response: color

# color (name + area)
Expand Down
1 change: 0 additions & 1 deletion sentences/fr/light_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,4 @@ intents:
- <eteins> <tous> [<le>]<lumieres>
slots:
domain: light
name: all
response: lights
1 change: 0 additions & 1 deletion sentences/fr/light_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,4 @@ intents:
- <allume> <tous> [<le>]<lumieres>
slots:
domain: light
area: all
response: lights
1 change: 0 additions & 1 deletion sentences/fr/lock_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ intents:
- "déverrouille[(z|r)] [<tous>] [(la|le[s])] [(porte[s]|serrure[s]|verrou[s])] [<dans>] [<le>]{area}"
slots:
domain: "lock"
name: "all"
response: lock
1 change: 0 additions & 1 deletion sentences/fr/lock_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ intents:
- "verrouille[(z|r)] [<tous>] (la|le[s]) (porte[s]|serrure[s]|verrou[s]) [<dans> [<le>]{area}]"
slots:
domain: "lock"
name: "all"
response: lock
1 change: 0 additions & 1 deletion tests/fr/cover_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ tests:
intent:
name: HassTurnOff
slots:
name: all
device_class:
- blind
- curtain
Expand Down
1 change: 0 additions & 1 deletion tests/fr/cover_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ tests:
intent:
name: HassTurnOn
slots:
name: all
device_class:
- blind
- curtain
Expand Down
1 change: 0 additions & 1 deletion tests/fr/fan_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ tests:
slots:
area: salon
domain: fan
name: all
response: "Ventilateurs éteints"
1 change: 0 additions & 1 deletion tests/fr/fan_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ tests:
slots:
area: salon
domain: fan
name: all
response: "Ventilateurs allumés"
1 change: 0 additions & 1 deletion tests/fr/homeassistant_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,3 @@ tests:
- blind
- curtain
- shutter
name: all
1 change: 0 additions & 1 deletion tests/fr/homeassistant_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,3 @@ tests:
- blind
- curtain
- shutter
name: all
3 changes: 0 additions & 3 deletions tests/fr/light_HassLightSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ tests:
slots:
brightness: 50
area: cuisine
name: all
response: Luminosité réglée

# brightness (name + area)
Expand Down Expand Up @@ -93,7 +92,6 @@ tests:
slots:
color: red
area: cuisine
name: all
response: Couleur réglée

# color (name + area)
Expand Down Expand Up @@ -137,5 +135,4 @@ tests:
slots:
area: chambre
color: red
name: all
response: Couleur réglée
1 change: 0 additions & 1 deletion tests/fr/light_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ tests:
name: HassTurnOff
slots:
domain: light
name: all
response: Lumières éteintes

- sentences:
Expand Down
1 change: 0 additions & 1 deletion tests/fr/light_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ tests:
name: HassTurnOn
slots:
domain: light
area: all
response: Lumières allumées

- sentences:
Expand Down
2 changes: 0 additions & 2 deletions tests/fr/lock_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ tests:
slots:
area: garage
domain: lock
name: all
response: "Ouvert"

- sentences:
Expand All @@ -29,5 +28,4 @@ tests:
slots:
area: entrée
domain: lock
name: all
response: "Ouvert"
2 changes: 0 additions & 2 deletions tests/fr/lock_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ tests:
slots:
area: garage
domain: lock
name: all
response: "Fermé"

- sentences:
Expand All @@ -29,5 +28,4 @@ tests:
slots:
area: entrée
domain: lock
name: all
response: "Fermé"

0 comments on commit f487b5e

Please sign in to comment.