Skip to content

Commit

Permalink
Fix state not condition for condition card
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya committed Oct 25, 2023
1 parent d2caed2 commit ac1082c
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 @@ -49,7 +49,7 @@ function checkStateCondition(

return condition.state != null
? ensureArray(condition.state).includes(state)
: ensureArray(condition.state_not).includes(state);
: !ensureArray(condition.state_not).includes(state);
}

function checkStateNumericCondition(
Expand Down

0 comments on commit ac1082c

Please sign in to comment.