Mini-graph-card: [0.106.0b0] Uncaught TypeError: Cannot assign to read only property 'index' of object

Created on 19 Feb 2020  路  9Comments  路  Source: kalkih/mini-graph-card

Since the new beta 0.106.x I get this error in my frontend:

mini-graph-card-bundle.js:1 Uncaught TypeError: Cannot assign to read only property 'index' of object '#<Object>'
    at mini-graph-card-bundle.js:1
    at Array.forEach (<anonymous>)
    at HTMLElement.set hass [as hass] (mini-graph-card-bundle.js:1)
    at HTMLElement.value (hui-view.ts:61)
    at HTMLElement.value (hui-view.ts:337)
    at HTMLElement.<anonymous> (hui-view.ts:68)
    at r (fire_event.ts:76)
    at create-element-base.ts:72 

Also lovelace does not display anything anymore.
When I remove mini graph card js, the error is gone and lovelace loads normal again.

bug

All 9 comments

Noticed this too late after submitting my own duplicate 106.0b0 issue (now closed).

Thanks, will have a look at the changed this weekend.

Damn I was hoping I could merge the pr manually to get it working again.....

@DavidFW1960 Clone this repo, checkout the 0.106.x-compatibility branch and build from source as per developer instructions in the readme 馃槈

I'm sure that's simpler than it looks but above my pay grade I think

I'm clearly cleverer than I thought I am as I managed to build it and it seems to be working...

OK it works but it causes the whole GUI for any view with that card on it to slow down dramatically... to the point of being unusable

EDIT: It's not the card slowing it down... seems everything is slow right now..

@DavidFW1960 Do you use the history card?
Could be related to this error:
https://github.com/home-assistant/home-assistant-polymer/pull/4935

@TheZoker 100% correct.. it's the history card slowing everything down. I rolled back to 0.105.5 nd @kalkih custom-card I built as per above works fine in 0.105.5 and 0.106.x as well. Just waiting for b1 now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gerard33 picture gerard33  路  3Comments

isabellaalstrom picture isabellaalstrom  路  6Comments

WhistleMaster picture WhistleMaster  路  3Comments

brezuicabogdan picture brezuicabogdan  路  5Comments

pejotigrek picture pejotigrek  路  6Comments