From a3f1e6cabe239626c26e9ee8eb7b893768431848 Mon Sep 17 00:00:00 2001 From: Alexis Tyler Date: Mon, 31 May 2021 13:17:40 +0930 Subject: [PATCH] Make card appear in lovelace card picker --- dist/air-visual-card.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dist/air-visual-card.js b/dist/air-visual-card.js index 295bf70..5f5655f 100644 --- a/dist/air-visual-card.js +++ b/dist/air-visual-card.js @@ -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.' +});