fix ha-card-condition-state invert selector (#21711)

This commit is contained in:
karwosts 2024-08-15 21:39:55 -07:00 committed by GitHub
parent 8c9996fc81
commit 3e1ea8d236
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -102,7 +102,7 @@ export class HaCardConditionState extends LitElement {
const data: StateConditionData = {
...content,
entity: this.condition.entity,
invert: this.condition.state_not ? "true" : "false",
invert: this.condition.state_not !== undefined ? "true" : "false",
state: this.condition.state_not ?? this.condition.state,
};