Skip to content

Commit

Permalink
Update to Lit 2
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidFW1960 committed May 27, 2021
1 parent 039d3e5 commit d74856d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bom-weather-card.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// #### Add card info to console
console.info(
`%cBOM-WEATHER-CARD\n%cVersion 0.88c `,
`%cBOM-WEATHER-CARD\n%cVersion 0.89 `,
"color: #043ff6; font-weight: bold; background: white",
"color: white; font-weight: bold; background: #043ff6"
);
Expand All @@ -15,16 +15,16 @@ window.customCards.push({
});

// #####
// ##### Get the LitElement and HTML classes from an already defined HA Lovelace class
// ##### Get the Lit and HTML classes from an already defined HA Lovelace class
// #####
var LitElement = LitElement || Object.getPrototypeOf(customElements.get("hui-masonry-view") || customElements.get('hui-view'));
var html = LitElement.prototype.html;
var Lit = Lit || Object.getPrototypeOf(customElements.get("ha-panel-lovelace") || customElements.get('hui-view'));
var html = Lit.prototype.html;

// #####
// ##### Custom Card Definition begins
// #####

class BOMWeatherCard extends LitElement {
class BOMWeatherCard extends Lit {

// #####
// ##### Define Render Template
Expand Down

0 comments on commit d74856d

Please sign in to comment.