Skip to content

Commit

Permalink
Fixed contain-toggled (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
holantomas authored Nov 5, 2022
1 parent 6aa8a20 commit 8ad3fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collapsable-cards.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class VerticalStackInCard extends HTMLElement {

if (
config.defaultOpen === 'contain-toggled' &&
config.cards.filter((c) => this._hass.states[c.entity]?.state === "on")
config.cards.filter((c) => this._hass.states[c.entity]?.state !== "off")
.length > 0
) {
toggleButton.click();
Expand Down

0 comments on commit 8ad3fb7

Please sign in to comment.