Skip to content

Commit

Permalink
Use strict comparison for above condition in conditional card
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya committed Nov 7, 2023
1 parent 8e1e75d commit 2f7be4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/panels/lovelace/common/validate-condition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function checkStateNumericCondition(

return (
(condition.above == null || condition.above < numericState) &&
(condition.below == null || condition.below >= numericState)
(condition.below == null || condition.below > numericState)
);
}

Expand Down

0 comments on commit 2f7be4a

Please sign in to comment.