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"