diff --git a/src/Card.svelte b/src/Card.svelte index a06d4db..c5f17a6 100644 --- a/src/Card.svelte +++ b/src/Card.svelte @@ -24,7 +24,10 @@ const el = createCard(rest) el.hass = hass - node?.replaceChildren(el) + if (node) { + node.innerHTML = '' + node.appendChild(el) + } } } }