diff --git a/collapsable-cards.js b/collapsable-cards.js index 7148d71..57873dd 100644 --- a/collapsable-cards.js +++ b/collapsable-cards.js @@ -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();