Skip to content

Commit

Permalink
Fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenpapierski committed Oct 19, 2024
1 parent 8fe9904 commit b867d90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bed-presence-mk1/sensor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ sensor:
float val_cal_bot = id(val_occupied_${sensor_id}).state - id(val_unoccupied_${sensor_id}).state;
float val_calibrated = val_cal_top/val_cal_bot;
if (val_calibrated > 100.0 {
if (val_calibrated > 100.0) {
val_calibrated = 100.0;
} else if (val_calibrated < 0.0) {
val_calibrated = 0.0;
Expand Down

0 comments on commit b867d90

Please sign in to comment.