From e8d9d6538fe094dd6b1e7e4c63943815c88bb5cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ab=C3=ADlio=20Costa?= Date: Sun, 7 Apr 2024 02:05:14 +0100 Subject: [PATCH] [PT] Add vacuum (#2126) --- responses/pt/HassVacuumReturnToBase.yaml | 5 +++++ responses/pt/HassVacuumStart.yaml | 5 +++++ sentences/pt/homeassistant_HassTurnOn.yaml | 1 + sentences/pt/vacuum_HassVacuumReturnToBase.yaml | 8 ++++++++ sentences/pt/vacuum_HassVacuumStart.yaml | 8 ++++++++ tests/pt/_fixtures.yaml | 4 ++++ tests/pt/vacuum_HassVacuumReturnToBase.yaml | 13 +++++++++++++ tests/pt/vacuum_HassVacuumStart.yaml | 11 +++++++++++ 8 files changed, 55 insertions(+) create mode 100644 responses/pt/HassVacuumReturnToBase.yaml create mode 100644 responses/pt/HassVacuumStart.yaml create mode 100644 sentences/pt/vacuum_HassVacuumReturnToBase.yaml create mode 100644 sentences/pt/vacuum_HassVacuumStart.yaml create mode 100644 tests/pt/vacuum_HassVacuumReturnToBase.yaml create mode 100644 tests/pt/vacuum_HassVacuumStart.yaml diff --git a/responses/pt/HassVacuumReturnToBase.yaml b/responses/pt/HassVacuumReturnToBase.yaml new file mode 100644 index 0000000000..611c169d53 --- /dev/null +++ b/responses/pt/HassVacuumReturnToBase.yaml @@ -0,0 +1,5 @@ +language: pt +responses: + intents: + HassVacuumReturnToBase: + default: "A regressar" diff --git a/responses/pt/HassVacuumStart.yaml b/responses/pt/HassVacuumStart.yaml new file mode 100644 index 0000000000..a783eec6b0 --- /dev/null +++ b/responses/pt/HassVacuumStart.yaml @@ -0,0 +1,5 @@ +language: pt +responses: + intents: + HassVacuumStart: + default: "Limpeza iniciada" diff --git a/sentences/pt/homeassistant_HassTurnOn.yaml b/sentences/pt/homeassistant_HassTurnOn.yaml index 4f6e3570df..68164a00a2 100644 --- a/sentences/pt/homeassistant_HassTurnOn.yaml +++ b/sentences/pt/homeassistant_HassTurnOn.yaml @@ -12,3 +12,4 @@ intents: - scene - script - sensor + - vacuum diff --git a/sentences/pt/vacuum_HassVacuumReturnToBase.yaml b/sentences/pt/vacuum_HassVacuumReturnToBase.yaml new file mode 100644 index 0000000000..bb3aca2c47 --- /dev/null +++ b/sentences/pt/vacuum_HassVacuumReturnToBase.yaml @@ -0,0 +1,8 @@ +language: pt +intents: + HassVacuumReturnToBase: + data: + - sentences: + - "(retornar|voltar) [(a|à|para a) base]" + requires_context: + domain: vacuum diff --git a/sentences/pt/vacuum_HassVacuumStart.yaml b/sentences/pt/vacuum_HassVacuumStart.yaml new file mode 100644 index 0000000000..7f681d167d --- /dev/null +++ b/sentences/pt/vacuum_HassVacuumStart.yaml @@ -0,0 +1,8 @@ +language: pt +intents: + HassVacuumStart: + data: + - sentences: + - "(começar|iniciar|ligar) " + requires_context: + domain: vacuum diff --git a/tests/pt/_fixtures.yaml b/tests/pt/_fixtures.yaml index 4353c363bd..274f88d66c 100644 --- a/tests/pt/_fixtures.yaml +++ b/tests/pt/_fixtures.yaml @@ -139,3 +139,7 @@ entities: - name: "Tarefas" id: "todo.tarefas" state: "" + + - name: "Ambrósio" + id: "vacuum.ambrosio" + state: "idle" diff --git a/tests/pt/vacuum_HassVacuumReturnToBase.yaml b/tests/pt/vacuum_HassVacuumReturnToBase.yaml new file mode 100644 index 0000000000..88af5b5b88 --- /dev/null +++ b/tests/pt/vacuum_HassVacuumReturnToBase.yaml @@ -0,0 +1,13 @@ +language: pt +tests: + - sentences: + - "Voltar o Ambrósio para a base" + - "Retornar o Ambrósio para a base" + - "Retornar o Ambrósio à base" + - "Retornar o Ambrósio" + - "Retornar Ambrósio" + intent: + name: HassVacuumReturnToBase + slots: + name: "Ambrósio" + response: "A regressar" diff --git a/tests/pt/vacuum_HassVacuumStart.yaml b/tests/pt/vacuum_HassVacuumStart.yaml new file mode 100644 index 0000000000..1b5392bd43 --- /dev/null +++ b/tests/pt/vacuum_HassVacuumStart.yaml @@ -0,0 +1,11 @@ +language: pt +tests: + - sentences: + - "começar o Ambrósio" + - "iniciar o Ambrósio" + - "ligar Ambrósio" + intent: + name: HassVacuumStart + slots: + name: "Ambrósio" + response: "Limpeza iniciada"