Closed habitoti closed 2 years ago
having the same issue after upgrading to 2022.5.3 `Logger: frontend.js.latest.202205041 Source: components/system_log/init.py:190 First occurred: 11:31:38 (9 occurrences) Last logged: 12:02:45
https://***.ui.nabu.casa/hacsfiles/lovelace-xiaomi-vacuum-card/xiaomi-vacuum-card.js:18:23 Uncaught TypeError: css is not a function https://***.ui.nabu.casa/hacsfiles/kiosk-mode/kiosk-mode.js:38:26 Uncaught TypeError: Cannot read properties of null (reading 'querySelector') https://***.ui.nabu.casa/hacsfiles/kiosk-mode/kiosk-mode.js:13:44 Uncaught TypeError: Cannot read properties of null (reading 'shadowRoot')`
Same issue for me, though the root error message is slightly different:
Uncaught TypeError: css is not a function
at Function.get styles [as styles] (xiaomi-vacuum-card.js?hacstag=180229356301:18:23)
at Function.finalize (styles.ts:368:1)
at Function.get observedAttributes [as observedAttributes] (styles.ts:368:1)
at window.CustomElementRegistry.define (typography.js:181:1)
at xiaomi-vacuum-card.js?hacstag=180229356301:296:20
at xiaomi-vacuum-card.js?hacstag=180229356301:297:3
Does work again with just released V4.2.0
I installed this vacuum card via HACS, it's properly listed under Dashboard resources. However I can't add an according card to a dashboard:
The only log entry I am seeing in the log files says:
http://homeassistant.local:8123/hacsfiles/lovelace-xiaomi-vacuum-card/xiaomi-vacuum-card.js?hacstag=180229356301:18:23 TypeError: undefined is not a function (near '...css...')
System: