From 8bdbe8c6a608acb4ef7573388be5cacf92ad9257 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Tue, 7 Nov 2023 12:04:04 +0100 Subject: [PATCH] Use strict comparison for above condition in conditional card (#18560) --- 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 3a63aa071816..861295064a77 100644 --- a/src/panels/lovelace/common/validate-condition.ts +++ b/src/panels/lovelace/common/validate-condition.ts @@ -83,7 +83,7 @@ function checkStateNumericCondition( return ( (condition.above == null || condition.above < numericState) && - (condition.below == null || condition.below >= numericState) + (condition.below == null || condition.below > numericState) ); }