autocomplete fix

This commit is contained in:
htmltiger 2022-03-03 13:34:31 +00:00 committed by GitHub
parent 0ea7f16469
commit 00b20180c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}