ha: merge conditionals

pull/3375/head
Rob Pilling 2024-04-21 19:32:44 +01:00
parent a610833bd7
commit c0ea3138e5
1 changed files with 8 additions and 11 deletions

View File

@ -71,11 +71,9 @@ Bangle.on('touch', function(btn, e){
if(isLeft){
toLeft();
}
if(isRight){
}else if (isRight){
toRight();
}
if(!isRight && !isLeft){
}else{
sendTrigger();
}
});
@ -83,8 +81,7 @@ Bangle.on('touch', function(btn, e){
Bangle.on("swipe", (lr,ud) => {
if (lr == -1) {
toLeft();
}
if (lr == 1) {
} else if (lr == 1) {
toRight();
}
});