ljmerza / light-entity-card

Control any light or switch entity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Card not showing

Kateriine opened this issue · comments

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);