Skip to content

Commit

Permalink
Merge pull request #18 from OmgImAlexis/patch-1
Browse files Browse the repository at this point in the history
Make card appear in lovelace card picker
  • Loading branch information
iantrich authored Jun 5, 2021
2 parents bc51d8f + e202e7b commit 5e51c3b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bignumber-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,12 @@ class BigNumberCard extends HTMLElement {
}

customElements.define('bignumber-card', BigNumberCard);

// Configure the preview in the Lovelace card picker
window.customCards = window.customCards || [];
window.customCards.push({
type: 'bignumber-card',
name: 'Big number card',
preview: false,
description: 'A simple card to display big numbers for sensors. It also supports severity levels as background.'
});

0 comments on commit 5e51c3b

Please sign in to comment.