custom-cards / dual-gauge-card

Dual gauge custom card for Lovelace in Home Assistant
MIT License
188 stars 41 forks source link

Cannot add property min, object is not extensible #33

Closed SeLLeRoNe closed 4 years ago

SeLLeRoNe commented 4 years ago

Hi there, I have re-installed the dual-guage-card now that has been removed from blacklist, I've checked and based on the closed issues and comments it seems to be compatible with latest HA, but I still manage to see the same issue (yes, I've clearead the cache, and it was a new installation, I had removed it since 0.106.x compatibility issues)

image

create-element-base.ts:64 dual-gauge-card TypeError: Cannot add property min, object is not extensible
    at HTMLElement.setConfig (dual-gauge-card.js:29)
    at s (create-element-base.ts:61)
    at c (create-element-base.ts:80)
    at u (create-element-base.ts:131)
    at Module.It (create-card-element.ts:55)
    at layout-card.js:1
    at HTMLElement.build_card (layout-card.js:1)
    at layout-card.js:1
    at Array.map (<anonymous>)
    at HTMLElement.build_cards (layout-card.js:1)

One very odd thing I noticed is that while refreshing the page during cache cleanup, I can see the card load for a micro-second, then it turns into the error above

To make sure I was not being affected by any cache, I removed the card file, causing a 404 on the network tab for the card, then re-intalled it in order to have a 200 response, the problem persist

Please let me know if I can provide any information that can be of use.

I am running latest HA 0.108.8

Thanks Andrea

Rocka84 commented 4 years ago

Hi! I think this is a caching problem. Please try the following: On your Lovelace Dashboard, click the dots in the upper right corner, then select "Reload resources". Does this resolve it?

SeLLeRoNe commented 4 years ago

Hi, thanks for your response.

I actually already tried that and also checked the cache, as explained before, using the network tab.

I feel that because of the "releases" being present, HACS is downloading that instead of the git repo with last commit.

Can you try to make a release? That should trigger HACS to update and get the latest release which at this point should include the latest commits.

SeLLeRoNe commented 4 years ago

Just to confirm, I tried to get the "master" and with that it works. I just saw you made a release but in HACS it was still not appearing so I guess once that appears it will work ;)

SeLLeRoNe commented 4 years ago

I think the release is not correctly done, at least not as stable. image

Rocka84 commented 4 years ago

How embarrassing :facepalm: Thanks for telling, I fixed it now. Hopefully.

SeLLeRoNe commented 4 years ago

Ehehe no worries! Now it works ;) Thanks!