Remove ondemand methods for CodeMirror and SortableJS (#18336)

This commit is contained in:
Steve Repsher
2023-10-23 04:29:49 -04:00
committed by GitHub
parent b24e99c56c
commit 77e05decdf
14 changed files with 25 additions and 72 deletions

View File

@@ -11,10 +11,7 @@ import type {
} from "../../../components/entity/ha-entity-picker";
import "../../../components/ha-icon-button";
import { sortableStyles } from "../../../resources/ha-sortable-style";
import {
loadSortable,
SortableInstance,
} from "../../../resources/sortable.ondemand";
import type { SortableInstance } from "../../../resources/sortable";
import { HomeAssistant } from "../../../types";
import { EntityConfig } from "../entity-rows/types";
@@ -93,7 +90,7 @@ export class HuiEntityEditor extends LitElement {
}
private async _createSortable() {
const Sortable = await loadSortable();
const Sortable = (await import("../../../resources/sortable")).default;
this._sortable = new Sortable(
this.shadowRoot!.querySelector(".entities")!,
{