1
0
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:
Wendelin
2025-12-11 08:28:45 +01:00
committed by GitHub
parent 3e20e9b388
commit 9f16ce7341
317 changed files with 1394 additions and 1352 deletions

View File

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

View File

@@ -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 => ({

View File

@@ -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", () => {