Skip to content

Commit

Permalink
[SV] Scripts (#2834)
Browse files Browse the repository at this point in the history
  • Loading branch information
slungs authored Jan 6, 2025
1 parent 8ec494d commit 61c3fc8
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 2 deletions.
1 change: 0 additions & 1 deletion sentences/sv/homeassistant_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ intents:
data:
- sentences:
- <slå_av> <name>
- sentences:
- <stäng_gardiner> <name>
response: cover
4 changes: 3 additions & 1 deletion sentences/sv/homeassistant_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ intents:
- sentences:
- <slå_på> <name>
excludes_context:
domain: vacuum
domain:
- vacuum
- script
- sentences:
- <öppna_gardiner> <name>
response: cover
11 changes: 11 additions & 0 deletions sentences/sv/script_HassTurnOn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: sv
intents:
HassTurnOn:
data:
- sentences:
- "<slå_på> <name> [script]"
requires_context:
domain: script
slots:
domain: script
response: script
4 changes: 4 additions & 0 deletions tests/sv/_fixtures.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ entities:
state: "idle"
attributes:
volume_level: "25"

- name: "Kvällsmusik"
id: "script.kvallsmusik"

timers:
- is_active: false
start_hours: 5
Expand Down
10 changes: 10 additions & 0 deletions tests/sv/script_HassTurnOn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: sv
tests:
- sentences:
- "Slå på Kvällsmusik"
intent:
name: HassTurnOn
slots:
domain: script
name: "Kvällsmusik"
response: "Startade"

0 comments on commit 61c3fc8

Please sign in to comment.