Skip to content

Commit

Permalink
Merge pull request #7 from jcwillox/master
Browse files Browse the repository at this point in the history
Fix LitElement Imports
  • Loading branch information
paulbdavis authored Sep 20, 2019
2 parents deb5df9 + a4e4349 commit 6ff8c23
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions button-entity-row.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { LitElement, html, css } from "https://unpkg.com/[email protected]/lit-element.js?module"
const LitElement = Object.getPrototypeOf(customElements.get("hui-view"))
const html = LitElement.prototype.html
const css = LitElement.prototype.css

class ButtonEntityRow extends LitElement {
static get properties() {
Expand Down Expand Up @@ -86,16 +88,16 @@ class ButtonEntityRow extends LitElement {
let button =
typeof item === "string"
? {
entityId: item,
icon: undefined,
stateIcons: undefined,
stateStyles: undefined,
stateIconStyles: undefined,
style: undefined,
iconStyle: undefined,
name: undefined,
service: undefined,
serviceData: undefined
entityId: item,
icon: undefined,
stateIcons: undefined,
stateStyles: undefined,
stateIconStyles: undefined,
style: undefined,
iconStyle: undefined,
name: undefined,
service: undefined,
serviceData: undefined
}
: {
entityId: item.entity,
Expand Down

0 comments on commit 6ff8c23

Please sign in to comment.