Closed s0c1 closed 4 years ago
same here, seems that all custom cards need a update or so,
Still wont work, after changing, restarting. Any advise? Another card "power wheel" did work after changing..
You have to clear your browser cache for this change to appear. Also, I did a contribute a pull request, so you can see the source that worked for me.
Never mind.
@s0c1's pull requested worked for me for a few months, but now I'm getting the following js error: :8123/local/surveillance-card.js?v=2:1
Uncaught SyntaxError: Unexpected token {
which is the first line of the import statement.
Seems like the problem is the external dependency for lit_element.
I did a little digging and found this message at the old source in npmjs
@polymer/lit-element has moved to lit-element. Please uninstall this package and install lit-element. See https://www.polymer-project.org/blog/2019-01-11-lit-element-rc
New location is here: https://www.npmjs.com/package/lit-element
I tried just subbing out locations and for new versions as a first go but didnt work. :(
----- EDIT ----- The old files are still there and I am able to curl them from the ha container under hass. So my above comment might not be related.
anyone has a solution?
I pulled this out and switched to the plain Camera element. If you use the still_image_url with a fast refresh time (1 second), it works like a champ in stock HA.
I'm not seeing this issue, can someone please let me know how to reproduce this issue. I'm not having any issues with this component and I have unifi, nest and amcrest cameras.
Fixed
lit-element has moved to: https://unpkg-gcp.firebaseapp.com/@polymer/lit-element@0.5.2/lit-element.js?module