Skip to content

Commit

Permalink
[SL] Current Time fix for time format (#2308)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejs2 authored Jul 11, 2024
1 parent 94d293d commit c016932
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions responses/sl/HassGetCurrentTime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ responses:
intents:
HassGetCurrentTime:
default: >
{% set hour_str = '{0:02d}'.format(slots.time.hour) %}
{% set minute_str = '{0:02d}'.format(slots.time.minute) %}
{{ hour_str }}:{{ minute_str }}
{{ slots.time.hour }}:{{ minute_str }}
2 changes: 1 addition & 1 deletion tests/sl/homeassistant_HassGetCurrentTime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ tests:
- "trenuten čas"
intent:
name: HassGetCurrentTime
response: 01:02
response: "1:02"

0 comments on commit c016932

Please sign in to comment.