Remove card-tools dependencies

This commit is contained in:
2022-07-16 01:06:52 +00:00
parent 0ebd347035
commit 09faf4a286
5 changed files with 82 additions and 134 deletions

View File

@@ -1,5 +1,4 @@
import { LitElement, html } from "lit";
import { hass_loaded } from "card-tools/src/hass";
class BrowserPlayerEditor extends LitElement {
setConfig(config) {}
@@ -9,7 +8,10 @@ class BrowserPlayerEditor extends LitElement {
}
(async () => {
await hass_loaded();
while (!window.browser_mod) {
await new Promise((resolve) => setTimeout(resolve, 1000));
}
await window.browser_mod.connectionPromise;
if (!customElements.get("browser-player-editor")) {
customElements.define("browser-player-editor", BrowserPlayerEditor);