mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 10:46:35 +00:00
Fix state not condition for condition card (#18397)
This commit is contained in:
parent
d2caed2b68
commit
8d2ec8098c
@ -49,7 +49,7 @@ function checkStateCondition(
|
|||||||
|
|
||||||
return condition.state != null
|
return condition.state != null
|
||||||
? ensureArray(condition.state).includes(state)
|
? ensureArray(condition.state).includes(state)
|
||||||
: ensureArray(condition.state_not).includes(state);
|
: !ensureArray(condition.state_not).includes(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkStateNumericCondition(
|
function checkStateNumericCondition(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user