Skip to content

Commit

Permalink
Use right element to get LitElement from (#30)
Browse files Browse the repository at this point in the history
`home-assistant` and `hui-view` are both don't have LitElement as prototype.
  • Loading branch information
bramkragten authored May 7, 2021
1 parent bc908ba commit d8ed9c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/pvpc-hourly-pricing-card.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const LitElement =
window.LitElement || Object.getPrototypeOf(customElements.get('home-assistant') || customElements.get('hui-view'));
window.LitElement || Object.getPrototypeOf(customElements.get("ha-panel-lovelace") || customElements.get("hc-lovelace"));
const { html, css } = LitElement.prototype;

const locale = {
Expand Down

0 comments on commit d8ed9c3

Please sign in to comment.