chore: Enforce import order via @ianvs/prettier-plugin-sort-imports (#2542)

This commit is contained in:
Dermot Duffy
2026-06-30 17:45:13 -07:00
committed by dermotduffy
parent 95f35bd326
commit a96dc2e863
668 changed files with 1035 additions and 101 deletions
+1
View File
@@ -1,5 +1,6 @@
import { format } from 'date-fns';
import { isEqual } from 'lodash-es';
import { FolderPathComponent } from '../../card-controller/folders/types';
import { FolderConfig } from '../../config/schema/folders';
import { formatDateAndTime } from '../../utils/basic';
+1
View File
@@ -1,4 +1,5 @@
import { orderBy } from 'lodash-es';
import { BrowseMediaMetadata, RichBrowseMedia } from './types';
// Unlike sorting of view items (see card-controller/view/sort.ts), for browse
+1
View File
@@ -1,4 +1,5 @@
import { z } from 'zod';
import { ExpiringEqualityCache } from '../../cache/expiring-cache';
export interface BrowseMediaMetadata {
+1
View File
@@ -1,5 +1,6 @@
import { add } from 'date-fns';
import { chunk } from 'lodash-es';
import { allPromises } from '../../utils/basic';
import { HomeAssistant } from '../types';
import { homeAssistantWSRequest } from '../ws-request';
@@ -1,4 +1,5 @@
import { Connection } from 'home-assistant-js-websocket';
import {
GetKeyCallback,
KeyedSubscriptionManager,
+1
View File
@@ -1,4 +1,5 @@
import { HassEntity } from 'home-assistant-js-websocket';
import { computeDomain } from './compute-domain.js';
import { Entity } from './registry/entity/types.js';
import { HomeAssistant } from './types.js';
+1
View File
@@ -1,5 +1,6 @@
import { HassEventBase } from 'home-assistant-js-websocket';
import { isEqualWith } from 'lodash-es';
import { HAEventContextFilter } from '../config/schema/common/ha-event';
import { isRecord } from '../utils/basic';
+1
View File
@@ -1,4 +1,5 @@
import { ZodSchema } from 'zod';
import { localize } from '../localize/localize';
import { AdvancedCameraCardError, Endpoint } from '../types';
import { homeAssistantGetSignedURLIfNecessary } from './sign-path';
+1
View File
@@ -1,4 +1,5 @@
import { HassEntity } from 'home-assistant-js-websocket';
import { HassStateDifference, HomeAssistant } from './types';
/**
+1
View File
@@ -1,4 +1,5 @@
import { STATE_RUNNING } from 'home-assistant-js-websocket';
import { HomeAssistant } from './types';
// HA is "ready" when the WebSocket is connected AND integrations have finished
+1
View File
@@ -1,4 +1,5 @@
import { z } from 'zod';
import { Cache } from '../../../cache/cache';
const deviceSchema = z.object({
+2 -1
View File
@@ -1,6 +1,7 @@
import { z } from 'zod';
import { HomeAssistant } from '../../types';
import { Cache } from '../../../cache/cache';
import { HomeAssistant } from '../../types';
export const entitySchema = z.object({
config_entry_id: z.string().nullable(),
+1 -1
View File
@@ -1,7 +1,7 @@
import { LRUCache } from '../cache/lru';
import { errorToConsole } from '../utils/basic';
import { homeAssistantWSRequest } from './ws-request';
import { HomeAssistant, ResolvedMedia, resolvedMediaSchema } from './types';
import { homeAssistantWSRequest } from './ws-request';
// It's important the cache size be at least as large as the largest likely
// media query or media items will from a given query will be evicted for other
+1 -2
View File
@@ -1,6 +1,5 @@
import { localize } from '../localize/localize';
import { AdvancedCameraCardError } from '../types';
import { CardHelpers, LovelaceCardWithEditor } from '../types';
import { AdvancedCameraCardError, CardHelpers, LovelaceCardWithEditor } from '../types';
class HomeAssistantElementsLoadError extends AdvancedCameraCardError {
constructor() {
+1 -1
View File
@@ -1,4 +1,4 @@
import { type Endpoint, SignedPath, signedPathSchema } from '../types';
import { SignedPath, signedPathSchema, type Endpoint } from '../types';
import { HomeAssistant } from './types';
import { homeAssistantWSRequest } from './ws-request';
+1
View File
@@ -1,5 +1,6 @@
import { MessageBase } from 'home-assistant-js-websocket';
import { ZodSchema } from 'zod';
import { localize } from '../localize/localize';
import { AdvancedCameraCardError } from '../types';
import { HomeAssistant } from './types';