From 00b20180c5a9529067d1c45b81a4bfd15929532e Mon Sep 17 00:00:00 2001 From: htmltiger <1429451+htmltiger@users.noreply.github.com> Date: Thu, 3 Mar 2022 13:34:31 +0000 Subject: [PATCH] autocomplete fix --- config-editor-card.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config-editor-card.js b/config-editor-card.js index ef28817..2a33991 100644 --- a/config-editor-card.js +++ b/config-editor-card.js @@ -1,4 +1,4 @@ -console.info("Config Editor 3.6"); +console.info("Config Editor 3.7"); const LitElement = window.LitElement || Object.getPrototypeOf(customElements.get("hui-masonry-view") ); const html = LitElement.prototype.html; const css = LitElement.prototype.css; @@ -188,7 +188,7 @@ async Coder(){ await p.routerOptions.routes.tmp.load(); const d=document.createElement("ha-panel-config"); await d.routerOptions.routes.automation.load(); - if(!customElements.get(c)){ + if(!document.createElement(c)){ this.localSet('Basic', 1); console.log('failed '+c); }