Skip to content

Commit

Permalink
Add "1/2" alongside "half" (#2253)
Browse files Browse the repository at this point in the history
  • Loading branch information
synesthesiam committed Jun 24, 2024
1 parent 1d4de6b commit 4980b7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sentences/en/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ lists:
values:
- in: "half"
out: 30
- in: "1/2"
out: 30
timer_name:
wildcard: true
timer_command:
Expand Down
3 changes: 3 additions & 0 deletions tests/en/homeassistant_HassStartTimer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ tests:

- sentences:
- "set a timer for half a minute"
- "set a timer for 1/2 a minute"
intent:
name: HassStartTimer
context:
Expand All @@ -38,6 +39,7 @@ tests:

- sentences:
- "set a timer for 1 and a half hours"
- "set a timer for 1 and a 1/2 hours"
intent:
name: HassStartTimer
context:
Expand All @@ -49,6 +51,7 @@ tests:

- sentences:
- "set a timer for half an hour"
- "set a timer for 1/2 an hour"
intent:
name: HassStartTimer
context:
Expand Down

0 comments on commit 4980b7a

Please sign in to comment.