Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Set temperature with area context #2810

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion sentences/fr/climate_HassClimateSetTemperature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ intents:
HassClimateSetTemperature:
data:
- sentences:
- "<regle> [la] température à {temperature}<degres>[ ][{temperature_unit}]"
- "<regle> [la] température à {temperature}<degres>[ ][{temperature_unit}] <dans> [<le>]{area}"
- "<regle> [la] température <dans> [<le>]{area} à {temperature}<degres>[ ][{temperature_unit}]"

- sentences:
- "<regle> [la] température à {temperature}<degres>[ ][{temperature_unit}]"
requires_context:
area:
slot: true
8 changes: 8 additions & 0 deletions tests/fr/climate_HassClimateSetTemperature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,25 @@ tests:
- ajuster la température à 30°
intent:
name: HassClimateSetTemperature
context:
area: salon
slots:
area: salon
temperature: 30
response: "Température réglée sur 30 degrés"
- sentences:
- mets la température à 30° C
- changer la température à 30° C
intent:
name: HassClimateSetTemperature
context:
area: salon

slots:
temperature: 30
temperature_unit: celsius
area: salon

response: "Température réglée sur 30 degrés"
- sentences:
- mets la température de la chambre à 50 degrés Fahrenheit
Expand Down
Loading