From 2f7be4a8d776f9d8b1dd42033af4a1e466c94244 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Tue, 7 Nov 2023 10:05:12 +0100 Subject: [PATCH] Use strict comparison for above condition in conditional card --- src/panels/lovelace/common/validate-condition.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panels/lovelace/common/validate-condition.ts b/src/panels/lovelace/common/validate-condition.ts index b6059292dbaa..a65b666aece7 100644 --- a/src/panels/lovelace/common/validate-condition.ts +++ b/src/panels/lovelace/common/validate-condition.ts @@ -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) ); }