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

[NB] Add translations for vacuum cmds #2070

Merged
merged 4 commits into from
Mar 29, 2024
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
5 changes: 5 additions & 0 deletions responses/nb/HassVacuumReturnToBase.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: nb
responses:
intents:
HassVacuumReturnToBase:
default: "Returnerer"
5 changes: 5 additions & 0 deletions responses/nb/HassVacuumStart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: nb
responses:
intents:
HassVacuumStart:
default: "Startet"
2 changes: 2 additions & 0 deletions sentences/nb/homeassistant_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ intents:
- script
- lock
- binary_sensor
- vacuum
- valve
- sentences:
- "<lukk> <navn>"
Expand All @@ -25,4 +26,5 @@ intents:
- script
- lock
- binary_sensor
- vacuum
- valve
2 changes: 2 additions & 0 deletions sentences/nb/homeassistant_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ intents:
- script
- lock
- binary_sensor
- vacuum
- valve
- sentences:
- "<åpne> <navn>"
Expand All @@ -25,4 +26,5 @@ intents:
- script
- lock
- binary_sensor
- vacuum
- valve
9 changes: 9 additions & 0 deletions sentences/nb/vacuum_HassVacuumReturnToBase.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: nb
intents:
HassVacuumReturnToBase:
data:
- sentences:
- "(returner|kjør) <navn> til[bake til] (dock[en]|base[n])"
- "(returner|kjør[ tilbake]) <navn>[ tilbake]"
requires_context:
domain: vacuum
8 changes: 8 additions & 0 deletions sentences/nb/vacuum_HassVacuumStart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: nb
intents:
HassVacuumStart:
data:
- sentences:
- "start <navn>"
requires_context:
domain: "vacuum"
4 changes: 4 additions & 0 deletions tests/nb/_fixtures.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,10 @@ entities:
temperature: "-2"
temperature_unit: "°C"

- name: "Dusty"
id: "vacuum.dusty"
state: "idle"

- name: "TV"
id: "media_player.tv"
state: "idle"
Expand Down
15 changes: 15 additions & 0 deletions tests/nb/vacuum_HassVacuumReturnToBase.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: nb
tests:
- sentences:
- "kjør dusty tilbake til docken"
- "returner dusty tilbake til docken"
- "returner dusty til docken"
- "returner dusty tilbake til basen"
- "returner dusty"
- "kjør tilbake dusty"
- "kjør dusty tilbake"
intent:
name: HassVacuumReturnToBase
slots:
name: "Dusty"
response: "Returnerer"
9 changes: 9 additions & 0 deletions tests/nb/vacuum_HassVacuumStart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: nb
tests:
- sentences:
- "start dusty"
intent:
name: HassVacuumStart
slots:
name: "Dusty"
response: "Startet"