Skip to content

Commit

Permalink
Fix a syntax error in the check region judgment (code suggestion from…
Browse files Browse the repository at this point in the history
… Cossid)
  • Loading branch information
screekworkshop committed Oct 17, 2023
1 parent 4f6a13e commit d9ab720
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 2a/yaml/beta/human-sensor-2a-beta-github.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ script:
id(tips_zone1_conf).publish_state("Err: Y-Begin > Y-End");
return;
}
if (id(zone1_x_begin).state == 0, id(zone1_x_end).state == 0, id(zone1_y_begin).state == 0, id(zone1_y_end).state == 0){
if (id(zone1_x_begin).state == 0 && id(zone1_x_end).state == 0 && id(zone1_y_begin).state == 0 && id(zone1_y_end).state == 0){
id(tips_zone1_conf).publish_state("Configure below");
return;
}
Expand All @@ -596,7 +596,7 @@ script:
id(tips_zone2_conf).publish_state("Err: Y-Begin > Y-End");
return;
}
if (id(zone2_x_begin).state == 0, id(zone2_x_end).state == 0, id(zone2_y_begin).state == 0, id(zone2_y_end).state == 0){
if (id(zone2_x_begin).state == 0 && id(zone2_x_end).state == 0 && id(zone2_y_begin).state == 0 && id(zone2_y_end).state == 0){
id(tips_zone2_conf).publish_state("Configure below");
return;
}
Expand All @@ -618,7 +618,7 @@ script:
id(tips_zone3_conf).publish_state("Err: Y-Begin > Y-End");
return;
}
if (id(zone3_x_begin).state == 0, id(zone3_x_end).state == 0, id(zone3_y_begin).state == 0, id(zone3_y_end).state == 0){
if (id(zone3_x_begin).state == 0 && id(zone3_x_end).state == 0 && id(zone3_y_begin).state == 0 && id(zone3_y_end).state == 0){
id(tips_zone3_conf).publish_state("Configure below");
return;
}
Expand Down

0 comments on commit d9ab720

Please sign in to comment.