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

[DA] added cancel all timer and test, and change of default wording for timer #2816

Merged
merged 27 commits into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
04a43a8
[DA] added cancel all timer
kimvonmullen Jan 1, 2025
1dcafde
[DA] added cancel all timer test
kimvonmullen Jan 1, 2025
43b7784
Merge branch 'main' into main
kimvonmullen Jan 1, 2025
5e62a5d
Merge branch 'home-assistant:main' into main
kimvonmullen Jan 2, 2025
a4abc5d
Merge branch 'main' into main
kimvonmullen Jan 4, 2025
69d0426
Merge branch 'home-assistant:main' into main
kimvonmullen Jan 5, 2025
4001205
Merge branch 'home-assistant:main' into main
kimvonmullen Jan 10, 2025
f077b07
[DA] change wording for timer in Danish in Update _common.yaml
Dawn3888 Jan 10, 2025
fb05bcb
Update for the test file
Dawn3888 Jan 10, 2025
8051520
Update for the test file
Dawn3888 Jan 10, 2025
b4b4507
Merge branch 'main' into main
kimvonmullen Jan 10, 2025
8b2c789
Update for the test file
Dawn3888 Jan 10, 2025
c16f6f0
Added missing empty line
MTrab Jan 10, 2025
8b54891
Added missing blank line
MTrab Jan 10, 2025
d8f2e09
Added missing blank line
MTrab Jan 10, 2025
126bd54
Merge branch 'main' into main
kimvonmullen Jan 13, 2025
0fb6865
Merge branch 'main' into main
kimvonmullen Jan 17, 2025
7d95e10
Update _common.yaml
kimvonmullen Jan 20, 2025
b51ae7f
Removing extra blank line
MTrab Jan 20, 2025
04ad239
Shoulld fix run problems in tests
MTrab Jan 20, 2025
4850e7d
Try fixing timers and tests
MTrab Jan 20, 2025
2b809d4
Removing extra (
MTrab Jan 20, 2025
1ccce91
Remove singular expression from plural file
MTrab Jan 20, 2025
35cd0ce
Added missing whitespace in sentence
MTrab Jan 20, 2025
47a88f0
Removing full stop dots from response file
MTrab Jan 20, 2025
42a45f0
Trying to fix build errors by setting response to singular
MTrab Jan 20, 2025
3edcf9c
Yet another try to fix the build error for the tests
MTrab Jan 20, 2025
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
20 changes: 20 additions & 0 deletions responses/da/HassCancelAllTimers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
language: da
responses:
intents:
HassCancelAllTimers:
default: >
{% if slots.canceled < 1: %}
Ingen nedtælling afbrudt
{% elif slots.canceled == 1: %}
En nedtælling afbrudt.
{% else: %}
{{ slots.canceled }} nedtællinger afbrudt.
{% endif %}
area: >
{% if slots.canceled < 1: %}
Ingen nedtælling afbrudt i {{ slots.area }}.
{% elif slots.canceled == 1: %}
1 nedtælling afbrudt i {{ slots.area }}.
{% else: %}
{{ slots.canceled }} nedtællinger afbrudt i {{ slots.area }}.
{% endif %}
MTrab marked this conversation as resolved.
Show resolved Hide resolved
10 changes: 5 additions & 5 deletions sentences/da/_common.yaml
MTrab marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ responses:
duplicate_entities_in_floor: "Undskyld, er er flere enheder med navnet {{ entity }} på {{ floor }} etage"

# Errors for timers / Fejl for nedtælling
timer_not_found: "Undskyld, den timer kunne jeg ikke finde"
multiple_timers_matched: "Undskyld, jeg kan ikke håndtere flere timer"
no_timer_support: "Undskyld, timer er ikk eunderstøttet på denne enhed"
timer_not_found: "Undskyld, den nedtælling kunne jeg ikke finde"
multiple_timers_matched: "Undskyld, jeg kan ikke håndtere flere nedtællinger"
no_timer_support: "Undskyld, nedtælling er ikkeunderstøttet på denne enhed"

lists:
brightness:
Expand Down Expand Up @@ -370,8 +370,8 @@ expansion_rules:
i: "(i|[oppe ]på)"

# Timers
timer: "(timer | nedtælling)"
timers: "(timere | nedtællinger)"
timer: "(nedtælling | timer)"
timers: "(nedtællinger | timere)"
timer_pause: "(pause|[midlertidig ](stop|stands)[e])"
timer_unpause: "(fortsæt|genoptage)"
timer_add: "(læg til|øge)"
Expand Down
9 changes: 9 additions & 0 deletions sentences/da/homeassistant_HassCancelAllTimers.yaml
MTrab marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: "da"
intents:
HassCancelAllTimers:
data:
- sentences:
- "<timer_cancel> <al> [mine] <timer>"
- sentences:
- "<timer_cancel> <al> [mine] <timer> <i_på> <område>"
response: area
2 changes: 1 addition & 1 deletion sentences/da/homeassistant_HassCancelTimer.yaml
MTrab marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
language: da
language: "da"
intents:
HassCancelTimer:
data:
Expand Down
24 changes: 24 additions & 0 deletions tests/da/homeassistant_HassCancelAllTimers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
language: da
tests:
- sentences:
- "stop alle nedtællinger"
- "afbryd alle nedtællinger"
- "afbryd alle mine nedtællinger"
- "fjern alle nedtællinger"
- "fjern alle mine nedtællinger"
- "slet alle nedtællinger"
- "slet alle mine nedtællinger"
intent:
name: HassCancelAllTimers
response: 3 nedtællinger afbrudt

- sentences:
- "stop alle nedtællinger i køkken"
- "afbryd alle nedtællinger i køkken"
- "fjern alle mine nedtællinger i køkken"
intent:
name: HassCancelAllTimers
slots:
area: Køkken
response: 3 nedtællinger afbrudt i køkken

Loading