mirror of
https://github.com/Anonym-tsk/smart-domofon.git
synced 2025-12-06 11:36:57 +03:00
Fix push-button behavior
This commit is contained in:
@@ -139,6 +139,7 @@ switch:
|
||||
name: "${board_name} accept call"
|
||||
icon: "mdi:door-open"
|
||||
lambda: "return false;"
|
||||
optimistic: true
|
||||
turn_on_action:
|
||||
if:
|
||||
condition:
|
||||
@@ -153,6 +154,7 @@ switch:
|
||||
name: "${board_name} reject call"
|
||||
icon: "mdi:door-closed-lock"
|
||||
lambda: "return false;"
|
||||
optimistic: true
|
||||
turn_on_action:
|
||||
if:
|
||||
condition:
|
||||
@@ -160,4 +162,4 @@ switch:
|
||||
then:
|
||||
script.execute: call_reject
|
||||
else:
|
||||
logger.log: "No incoming call"
|
||||
logger.log: "No incoming call"
|
||||
|
||||
Reference in New Issue
Block a user