Skip to content

Commit

Permalink
Merge pull request #46 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
dnguyen800 authored Aug 23, 2021
2 parents 46ff440 + a3f1e6c commit 2676fdd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dist/air-visual-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,3 +406,12 @@ class AirVisualCard extends HTMLElement {
}

customElements.define('air-visual-card', AirVisualCard);

// Configure the preview in the Lovelace card picker
window.customCards = window.customCards || [];
window.customCards.push({
type: 'air-visual-card',
name: 'Air Visual Card',
preview: false,
description: 'This is a Home Assistant Lovelace card that uses the AirVisual Sensor to provide air quality index (AQI) data and creates a card like the ones found on AirVisual website. Requires the AirVisual Sensor to be setup. Tested with Yahoo and Darksky Weather component.'
});

0 comments on commit 2676fdd

Please sign in to comment.