I would like to highly recommend an alternative to Button Card, one that is being actively developed, and whose developer is responsive!
It’s a follow-on from Custom UI: Tiles, and is a fully functional and separate LoveLace custom card that follows strongly in its original Tiles roots. It is very customisable and feature rich with what you can do!
Anyway, as a taster, this is what I’ve done with mine:
Found a fix, you need to edit the the button-card.js file.
remove the ‘^’ from line 3 in the url (next to the version number 0.5.2)
} from 'https://unpkg.com/@polymer/lit-element@^0.5.2/lit-element.js?module';
becomes
} from 'https://unpkg.com/@polymer/[email protected]/lit-element.js?module';
if this does not fix it for you it is likely because HA has cached the js file. to force it to refresh add or increment the version number in your ui-lovelace.yaml
eg:
edit : it’s ok !
change first line of button-card.js import { LitElement, html, } from 'https://unpkg-gcp.firebaseapp.com/@polymer/[email protected]/lit-element.js?module';
and delete cache