From 4f8a69d2e779234ab906322e827b041896525a75 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Mon, 18 Dec 2023 15:42:51 +0100 Subject: [PATCH] yamllint --- nspanel_blueprint.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/nspanel_blueprint.yaml b/nspanel_blueprint.yaml index ca3edd4..7668526 100644 --- a/nspanel_blueprint.yaml +++ b/nspanel_blueprint.yaml @@ -9523,13 +9523,15 @@ action: - '{{ nspanel_event.command == "short_click" and entity_domain not in ["climate", "media_player"] }}' sequence: - condition: '{{ last_click_button.entity | length > 0 }}' - - condition: '{{ nspanel_event.component != "hw_bt_left" or hardware.buttons.left.entity != relay01_entity }}' ### Prevents blueprint control when locally controlled - - condition: '{{ nspanel_event.component != "hw_bt_right" or hardware.buttons.right.entity != relay02_entity }}' ### Prevents blueprint control when locally controlled + - condition: '{{ nspanel_event.component != "hw_bt_left" or hardware.buttons.left.entity != relay01_entity }}' + - condition: '{{ nspanel_event.component != "hw_bt_right" or hardware.buttons.right.entity != relay02_entity }}' - &short_press-service_call if: '{{ true }}' then: - service: > - {% if entity_domain in ["cover"] and states(last_click_button.entity) in ["opening", "closing"] and state_attr(last_click_button.entity, "supported_features") | int(0) | bitwise_and(4) == 0 %} + {% if entity_domain in ["cover"] + and states(last_click_button.entity) in ["opening", "closing"] + and state_attr(last_click_button.entity, "supported_features") | int(0) | bitwise_and(4) == 0 %} {{ entity_domain }}.stop_cover {% elif entity_domain in ["light", "switch", "cover", "input_boolean", "fan", "remote"] %} {{ entity_domain }}.toggle