mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-06 18:08:45 +00:00
More yamllint
This commit is contained in:
@@ -107,7 +107,8 @@ sensor:
|
|||||||
- binary_sensor.kitchen_window
|
- binary_sensor.kitchen_window
|
||||||
friendly_name: Open window count
|
friendly_name: Open window count
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{{ states | selectattr('entity_id', 'in', state_attr('group.all_windows', 'entity_id')) | selectattr('state', 'eq', 'on') | list | count | int }}
|
{{ set entityStates = states | selectattr('entity_id', 'in', state_attr('group.all_windows', 'entity_id')) %}
|
||||||
|
{{ entityStates | selectattr('state', 'eq', 'on') | list | count | int }}
|
||||||
|
|
||||||
#
|
#
|
||||||
# ─── CUSTOMIZATION ──────────────────────────────────────────────────────────────
|
# ─── CUSTOMIZATION ──────────────────────────────────────────────────────────────
|
||||||
|
|||||||
Reference in New Issue
Block a user