mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-19 18:28:42 +00:00
Fix picker initial sort and reorganize picker data (#28476)
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
import type { HassConfig } from "home-assistant-js-websocket";
|
||||
import { assert, describe, it, beforeEach, expect } from "vitest";
|
||||
import { assert, beforeEach, describe, expect, it } from "vitest";
|
||||
import {
|
||||
computeStateDisplay,
|
||||
computeStateDisplayFromEntityAttributes,
|
||||
} from "../../../src/common/entity/compute_state_display";
|
||||
import { UNKNOWN } from "../../../src/data/entity";
|
||||
import { UNKNOWN } from "../../../src/data/entity/entity";
|
||||
import type { EntityRegistryDisplayEntry } from "../../../src/data/entity/entity_registry";
|
||||
import type { FrontendLocaleData } from "../../../src/data/translation";
|
||||
import {
|
||||
DateFormat,
|
||||
FirstWeekday,
|
||||
NumberFormat,
|
||||
TimeFormat,
|
||||
FirstWeekday,
|
||||
DateFormat,
|
||||
TimeZone,
|
||||
} from "../../../src/data/translation";
|
||||
import { demoConfig } from "../../../src/fake_data/demo_config";
|
||||
import type { EntityRegistryDisplayEntry } from "../../../src/data/entity_registry";
|
||||
|
||||
let localeData: FrontendLocaleData;
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import type { HassEntity } from "home-assistant-js-websocket";
|
||||
import type { AreaRegistryEntry } from "../../../../src/data/area_registry";
|
||||
import type { DeviceRegistryEntry } from "../../../../src/data/device_registry";
|
||||
import type { DeviceRegistryEntry } from "../../../../src/data/device/device_registry";
|
||||
import type {
|
||||
EntityRegistryDisplayEntry,
|
||||
EntityRegistryEntry,
|
||||
} from "../../../../src/data/entity_registry";
|
||||
} from "../../../../src/data/entity/entity_registry";
|
||||
import type { FloorRegistryEntry } from "../../../../src/data/floor_registry";
|
||||
|
||||
export const mockStateObj = (partial: Partial<HassEntity>): HassEntity => ({
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import { describe, it, expect, vi } from "vitest";
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import {
|
||||
isDeletableEntity,
|
||||
deleteEntity,
|
||||
isDeletableEntity,
|
||||
} from "../../../src/common/entity/delete_entity";
|
||||
import type { HomeAssistant } from "../../../src/types";
|
||||
import type { EntityRegistryEntry } from "../../../src/data/entity_registry";
|
||||
import type { IntegrationManifest } from "../../../src/data/integration";
|
||||
import type { ConfigEntry } from "../../../src/data/config_entries";
|
||||
import type { EntityRegistryEntry } from "../../../src/data/entity/entity_registry";
|
||||
import type { IntegrationManifest } from "../../../src/data/integration";
|
||||
import type { Helper } from "../../../src/panels/config/helpers/const";
|
||||
import type { HomeAssistant } from "../../../src/types";
|
||||
|
||||
describe("isDeletableEntity", () => {
|
||||
it("should return true for restored entities", () => {
|
||||
|
||||
Reference in New Issue
Block a user