Skip to content

Commit

Permalink
Fix context awareness (#1844)
Browse files Browse the repository at this point in the history
* Fix Context awarness in French

* Fix context awarness in NL
  • Loading branch information
jlpouffier authored Jan 2, 2024
1 parent a39eb6a commit f8ce752
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 4 deletions.
3 changes: 2 additions & 1 deletion sentences/fr/light_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ intents:
slots:
domain: light
requires_context:
area: null
area:
slot: true

# name + area
# See intents/sentences/fr/homeassistant_HassTurnOff.yaml
Expand Down
3 changes: 2 additions & 1 deletion sentences/fr/light_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ intents:
slots:
domain: light
requires_context:
area: null
area:
slot: true

# name + area
# See intents/sentences/fr/homeassistant_HassTurnOff.yaml
Expand Down
3 changes: 2 additions & 1 deletion sentences/nl/light_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ intents:
slots:
domain: "light"
requires_context:
area: null
area:
slot: true

- sentences:
- "[<doe>] ((overal|<alle>) <lamp>|<lamp> overal) uit"
Expand Down
3 changes: 2 additions & 1 deletion sentences/nl/light_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ intents:
slots:
domain: "light"
requires_context:
area: null
area:
slot: true
1 change: 1 addition & 0 deletions tests/fr/light_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ tests:
area: Living Room
slots:
domain: light
area: Living Room
response: "Lumières éteintes"
1 change: 1 addition & 0 deletions tests/fr/light_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ tests:
area: Living Room
slots:
domain: light
area: Living Room
response: "Lumières allumées"
1 change: 1 addition & 0 deletions tests/nl/light_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ tests:
context:
area: Woonkamer
slots:
area: Woonkamer
domain: light
response: "Verlichting uitgezet"

Expand Down
1 change: 1 addition & 0 deletions tests/nl/light_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@ tests:
context:
area: Woonkamer
slots:
area: Woonkamer
domain: light
response: "Verlichting aangezet"

0 comments on commit f8ce752

Please sign in to comment.