Skip to content

Commit

Permalink
👽 Fix 0.116.0 compatibility #43 (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalkih authored Oct 7, 2020
1 parent 422e865 commit 7e18268
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ import WeatherEntity from './weather';
import style from './style';
import { handleClick } from './handleClick';

const LitElement = window.LitElement || Object.getPrototypeOf(
customElements.get("hui-view"),
);
const LitElement = window.LitElement
|| Object.getPrototypeOf(customElements.get("home-assistant") || customElements.get("hui-view"))
const { html, css } = LitElement.prototype;

const UNITS = {
Expand Down

0 comments on commit 7e18268

Please sign in to comment.