Popup-card

This commit is contained in:
2022-07-19 22:58:27 +00:00
parent a4085ed3ab
commit 30d8f027dc
8 changed files with 834 additions and 15 deletions

View File

@@ -75,3 +75,13 @@ export const loadLoadCardHelpers = async () => {
]);
await routes?.routes?.a?.load?.();
};
export const loadHaForm = async () => {
if (customElements.get("ha-form")) return;
await loadLoadCardHelpers();
const helpers = await window.loadCardHelpers();
if (!helpers) return;
const card = await helpers.createCardElement({ type: "entity" });
if (!card) return;
await card.getConfigElement();
};