From 61c3fc82a4014f3e87e5c6f23592146ea147ef68 Mon Sep 17 00:00:00 2001 From: slungs <58640347+slungs@users.noreply.github.com> Date: Tue, 7 Jan 2025 00:02:22 +0100 Subject: [PATCH] [SV] Scripts (#2834) --- sentences/sv/homeassistant_HassTurnOff.yaml | 1 - sentences/sv/homeassistant_HassTurnOn.yaml | 4 +++- sentences/sv/script_HassTurnOn.yaml | 11 +++++++++++ tests/sv/_fixtures.yaml | 4 ++++ tests/sv/script_HassTurnOn.yaml | 10 ++++++++++ 5 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 sentences/sv/script_HassTurnOn.yaml create mode 100644 tests/sv/script_HassTurnOn.yaml diff --git a/sentences/sv/homeassistant_HassTurnOff.yaml b/sentences/sv/homeassistant_HassTurnOff.yaml index 6d0b91f39b..cd638afeba 100644 --- a/sentences/sv/homeassistant_HassTurnOff.yaml +++ b/sentences/sv/homeassistant_HassTurnOff.yaml @@ -4,6 +4,5 @@ intents: data: - sentences: - - - sentences: - response: cover diff --git a/sentences/sv/homeassistant_HassTurnOn.yaml b/sentences/sv/homeassistant_HassTurnOn.yaml index 9b4c0ca900..1d58ee8508 100644 --- a/sentences/sv/homeassistant_HassTurnOn.yaml +++ b/sentences/sv/homeassistant_HassTurnOn.yaml @@ -5,7 +5,9 @@ intents: - sentences: - excludes_context: - domain: vacuum + domain: + - vacuum + - script - sentences: - <öppna_gardiner> response: cover diff --git a/sentences/sv/script_HassTurnOn.yaml b/sentences/sv/script_HassTurnOn.yaml new file mode 100644 index 0000000000..c600695ff4 --- /dev/null +++ b/sentences/sv/script_HassTurnOn.yaml @@ -0,0 +1,11 @@ +language: sv +intents: + HassTurnOn: + data: + - sentences: + - " [script]" + requires_context: + domain: script + slots: + domain: script + response: script diff --git a/tests/sv/_fixtures.yaml b/tests/sv/_fixtures.yaml index 2e78921bfd..b481bc736e 100644 --- a/tests/sv/_fixtures.yaml +++ b/tests/sv/_fixtures.yaml @@ -131,6 +131,10 @@ entities: state: "idle" attributes: volume_level: "25" + + - name: "Kvällsmusik" + id: "script.kvallsmusik" + timers: - is_active: false start_hours: 5 diff --git a/tests/sv/script_HassTurnOn.yaml b/tests/sv/script_HassTurnOn.yaml new file mode 100644 index 0000000000..7ebaca74ce --- /dev/null +++ b/tests/sv/script_HassTurnOn.yaml @@ -0,0 +1,10 @@ +language: sv +tests: + - sentences: + - "Slå på Kvällsmusik" + intent: + name: HassTurnOn + slots: + domain: script + name: "Kvällsmusik" + response: "Startade"