ljmerza / light-entity-card

Control any light or switch entity
MIT License
228 stars 41 forks source link

Card not showing #124

Open Kateriine opened 5 months ago

Kateriine commented 5 months ago

img 2024-02-12 à 09 27 00 On Chrome 121.0.6167.160 , with HA latest versions, and card 6.1.3, shadowRoot is empty, so it's giving some errors:

Uncaught TypeError: Cannot read properties of null (reading 'offsetWidth') at hi.getColorPickerWidth (index.js:81:48) at hi.setColorWheels (index.js:54:35) at index.js:233:12

In index.js:

const elem = this.shadowRoot.querySelector('.light-entity-card');
const width = elem.offsetWidth;

reactive-element.js:6 Uncaught (in promise) TypeError: (intermediate value)(intermediate value)(intermediate value).importNode is not a function at t.value (lit-html.ts:1122:52) at t.value (lit-html.ts:1528:33) at t.value (lit-html.ts:1375:12) at lit-html.ts:2169:8 at hi.value (lit-element.ts:165:24) at hi.performUpdate (reactive-element.js:6:4849) at hi.scheduleUpdate (reactive-element.js:6:4496) at hi._$Ej (reactive-element.js:6:4404)

In lit.html.ts: const fragment = (options?.creationScope ?? d).importNode(content, true);