diff --git a/src/card/yerushamayim-card-local.js b/src/card/yerushamayim-card-local.js index f81edad..9751b12 100755 --- a/src/card/yerushamayim-card-local.js +++ b/src/card/yerushamayim-card-local.js @@ -175,4 +175,12 @@ class YerushamayimCard extends LitElement { } } -customElements.define('yerushamayim-card', YerushamayimCard); \ No newline at end of file +customElements.define('yerushamayim-card', YerushamayimCard); +window.customCards = window.customCards || []; +window.customCards.push({ + type: "yerushamayim-card", + name: "Yerushamayim Weather Card", + preview: true, + description: "Unofficial Yerushamayim Home Assistant dashboard card", + documentationURL: "https://github.com/chilikla/yerushamayim-card" +}); \ No newline at end of file diff --git a/src/card/yerushamayim-card.js b/src/card/yerushamayim-card.js index 9b5febb..50c94b0 100755 --- a/src/card/yerushamayim-card.js +++ b/src/card/yerushamayim-card.js @@ -25,7 +25,6 @@ class YerushamayimCard extends LitElement { render() { const entityId = this.config.entity; const state = this.hass.states[entityId]; - console.log("states", this.hass.states); const stateStr = state ? state.state : 'unavailable'; const logUrl = this.hass.states['sun.sun'].state === 'below_horizon' ? 'https://www.02ws.co.il/img/logo_night.png' : 'https://www.02ws.co.il/img/logo.png'; @@ -173,3 +172,11 @@ class YerushamayimCard extends LitElement { } customElements.define('yerushamayim-card', YerushamayimCard); +window.customCards = window.customCards || []; +window.customCards.push({ + type: "yerushamayim-card", + name: "Yerushamayim Weather Card", + preview: true, + description: "Unofficial Yerushamayim Home Assistant dashboard card", + documentationURL: "https://github.com/chilikla/yerushamayim-card" +}); \ No newline at end of file