Minor updates

This commit is contained in:
CCOSTAN
2017-02-13 20:43:09 +00:00
parent b5ee1cca92
commit c9ec1cbd77

View File

@@ -35,7 +35,7 @@
{%- endfor %} lights on right now." {%- endfor %} lights on right now."
{% set comma = joiner(', ') %} The {% set comma = joiner(', ') %} The
{% for group in states.group|groupby('state') -%} {% for group in states.group|groupby('state') -%}
{%- for entity in group.list if entity.state == 'off' and entity.name.split(' ')[1]|lower == 'lights' and entity.name.split(' ')[0]|lower != 'all' and entity.name.split(' ')[0]|lower != 'interior' -%} {%- for entity in group.list if entity.state == 'on' and entity.name.split(' ')[1]|lower == 'lights' and entity.name.split(' ')[0]|lower != 'all' and entity.name.split(' ')[0]|lower != 'interior' -%}
{{ ' and' if loop.last and not loop.first else comma() }} {{ ' and' if loop.last and not loop.first else comma() }}
{{ entity.name }} {{ entity.name }}
{%- endfor -%} {%- endfor -%}