Debian Codegraph @

intents/responses/ta/HassDecreaseTimer.yaml

raw symbols SCIP
1 language: ta
2 responses:
3 intents:
4 HassDecreaseTimer:
5 default:
6 'TODO: {% set h = slots.hours if slots.hours is defined else none %}
7 {% set m = slots.minutes if slots.minutes is defined else none %} {% set s
8 = slots.seconds if slots.seconds is defined else none %} {% set h_text = h
9 ~ ('' hour'' if h in [ "1", ''one''] else '' hours'') if h else '''' %} {%
10 set m_text = (30 if m in [''half'', ''1/2''] else m) ~ ('' minute'' if m in
11 [ "1", ''one''] else '' minutes'') if m else '''' %} {% set s_text = (30 if
12 s in [''half'', ''1/2''] else s) ~ ('' second'' if s in [ "1", ''one''] else
13 '' seconds'') if s else '''' %} {% set text_list = [ h_text, m_text, s_text]
14 | select() | list %} {% set text = text_list[:-1] | join('', '') ~ '' and
15 '' ~ text_list[-1] if text_list | count > 2 else text_list | join('' and '')
16 %} {% set name = ('' named '' ~ slots.name | trim) if slots.name is defined
17 else '''' %} {{ text }} removed from timer{{ name }}
18
19 '