thomasloven / lovelace-card-mod

🔹 Add CSS styles to (almost) any lovelace card
MIT License
1.04k stars 169 forks source link

Reoccurrence of issue #327 in Home Assistant Android app #336

Closed dd310 closed 6 months ago

dd310 commented 6 months ago

My Home Assistant version: 2024.1.0b2

My lovelace configuration method (GUI or yaml): yaml

What I am doing:

Even after updating card_mod to version 3.4.0, the error described in issue #327 keeps appearing:

photo_2023-12-30_21-42-04

Home Assistant Android app is updated to the latest version. It is not a consistent behaviour: sometimes it gives this error, sometimes (rarely) it loads correctly.

The issue never occurs using Chrome (desktop or mobile).

Logger: frontend.js.latest.202312280
Source: components/system_log/__init__.py:300
First occurred: 20:19:53 (48 occurrences)
Last logged: 20:20:15

Uncaught error from Chrome WebView 120.0.6099.144 on Android 13 TypeError: Illegal constructor new n (/hacsfiles/lovelace-card-mod/card-mod.js:1:10144) o.<anonymous> (/hacsfiles/lovelace-card-mod/card-mod.js:1:9380) new r (/hacsfiles/lovelace-card-mod/card-mod.js:1:15236) o.<anonymous> (/hacsfiles/lovelace-card-mod/card-mod.js:1:9380) new n (/hacsfiles/lovelace-card-mod/card-mod.js:1:32733) o.<anonymous> (/hacsfiles/lovelace-card-mod/card-mod.js:1:9380) new o (/hacsfiles/lovelace-card-mod/card-mod.js:1:45566) E (src/scoped-custom-element-registry.js:388:6) J (src/scoped-custom-element-registry.js:236:10) /hacsfiles/lovelace-card-mod/card-mod.js:1:39893
Uncaught error from Chrome WebView 120.0.6099.144 on Android 13 TypeError: Illegal constructor new n (/hacsfiles/lovelace-card-mod/card-mod.js:1:10144) o.<anonymous> (/hacsfiles/lovelace-card-mod/card-mod.js:1:9380) new r (/hacsfiles/lovelace-card-mod/card-mod.js:1:15236) o.<anonymous> (/hacsfiles/lovelace-card-mod/card-mod.js:1:9380) new n (/hacsfiles/lovelace-card-mod/card-mod.js:1:32733) o.<anonymous> (/hacsfiles/lovelace-card-mod/card-mod.js:1:9380) new o (/hacsfiles/lovelace-card-mod/card-mod.js:1:45566) E (src/scoped-custom-element-registry.js:388:6) J (src/scoped-custom-element-registry.js:236:10) /hacsfiles/lovelace-card-mod/card-mod.js:1:45196
Uncaught error from Chrome WebView 120.0.6099.144 on Android 13 TypeError: Illegal constructor new n (/hacsfiles/lovelace-card-mod/card-mod.js:1:10144) r.<anonymous> (/hacsfiles/lovelace-card-mod/card-mod.js:1:9380) new r (/hacsfiles/lovelace-card-mod/card-mod.js:1:15236) r.<anonymous> (/hacsfiles/lovelace-card-mod/card-mod.js:1:9380) new n (/hacsfiles/lovelace-card-mod/card-mod.js:1:32733) r.<anonymous> (/hacsfiles/lovelace-card-mod/card-mod.js:1:9380) new r (/hacsfiles/lovelace-card-mod/card-mod.js:1:64046) E (src/scoped-custom-element-registry.js:388:6) J (src/scoped-custom-element-registry.js:236:10) createErrorCardConfig (src/panels/lovelace/create-element/create-element-base.ts:91:27)

By putting an X in the boxes ([]) below, I indicate that I:

dd310 commented 6 months ago

Thanks for the fix, it worked. To anyone that was having the same issue, remember that you may have to manually clear the cache for the companion app.

thomasloven commented 6 months ago

Thanks for the feedback!