Skip to content

Commit

Permalink
[RO] HassSetPosition refactoring (home-assistant#2049)
Browse files Browse the repository at this point in the history
  • Loading branch information
tetele authored Mar 6, 2024
1 parent 324c835 commit cb2c672
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 9 deletions.
20 changes: 20 additions & 0 deletions sentences/ro/cover_HassSetPosition.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
language: ro
intents:
HassSetPosition:
data:
- sentences:
- "[<seteaza> ]<pozitia> [<din> ]<name> [<pana_la> ][valoarea[ de] ]<position>"
- "[<seteaza> ]<name> [<pana_la> ]<pozitia>[ de] <position>"
- "[<seteaza> ][<in>|<pana_la> ]<position> <pozitia> [<din> ]<name>"
- "(<deschide>|<inchide>) <name> [<pana_la> ][(valoarea|<pozitia>)[ de] ]<position>"
requires_context:
domain: cover
slots:
domain: cover

- sentences:
- "[<seteaza> ]({cover_classes_singular:device_class}|[toate ]{cover_classes_plural:device_class}) ([<din> ]<area>;[<pana_la> ](<pozitia>|valoare[a])[ de] <position>)"
- "[<seteaza> ]<pozitia> <din> ({cover_classes_singular:device_class}|[toate ]{cover_classes_plural:device_class}) ([<din> ]<area>;[<pana_la> ][(<pozitia>|valoare[a]) ][de ]<position>)"
- "(<deschide>|<inchide>) ([<pana_la> ][(<pozitia>|valoare[a])[ de] ]<position>;({cover_classes_singular:device_class}|[toate ]{cover_classes_plural:device_class}) [<din> ]<area>)"
slots:
domain: cover
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ intents:
- "[<seteaza> ][<in>|<pana_la> ]<position> <pozitia> [<din> ]<name>"
- "(<deschide>|<inchide>) <name> [<pana_la> ][(valoarea|<pozitia>)[ de] ]<position>"
requires_context:
domain:
- cover
- valve
domain: valve
slots:
domain: valve
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,21 @@ tests:
intent:
name: HassSetPosition
slots:
domain: cover
name: "fereastra din stanga"
position: 50
response: "Am setat poziția"

- sentences:
- "seteaza pozitia de la valva principala la 100"
- "pune valva principala la pozitia 100 %"
- "modifica la 100 de procente pozitia de la valva principala"
- "deschide valva principala 100%"
- "seteaza fereastra din dormitor la pozitia 50"
- "seteaza pozitia de la ferestrele din dormitor la 50 de procente"
- "inchide pana la valoarea de 50 la suta fereastra din dormitor"
- "deschide geamurile din dormitor 50%"
intent:
name: HassSetPosition
slots:
name: "Valva principala"
position: 100
domain: cover
device_class: "window"
area: "Dormitor"
position: 50
response: "Am setat poziția"
14 changes: 14 additions & 0 deletions tests/ro/valve_HassSetPosition.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
language: ro
tests:
- sentences:
- "seteaza pozitia de la valva principala la 100"
- "pune valva principala la pozitia 100 %"
- "modifica la 100 de procente pozitia de la valva principala"
- "deschide valva principala 100%"
intent:
name: HassSetPosition
slots:
domain: valve
name: "Valva principala"
position: 100
response: "Am setat poziția"

0 comments on commit cb2c672

Please sign in to comment.