chore: Replace deprecated 'node' module resolution with 'bundler' and tighten compiler options (#2594)

This commit is contained in:
Dermot Duffy
2026-07-22 12:12:00 -07:00
committed by GitHub
parent 87ecbc7e45
commit 2ca4aa95e5
13 changed files with 29 additions and 29 deletions
@@ -18,7 +18,6 @@ export class StatusBarItemManager {
this._api = api;
}
private _items: StatusBarItem[] = [];
private _dynamicItems: StatusBarItem[] = [];
public addDynamicStatusBarItem(item: StatusBarItem): void {
+1 -1
View File
@@ -1,4 +1,4 @@
import type { StyleInfo } from 'lit/directives/style-map';
import type { StyleInfo } from 'lit/directives/style-map.js';
import { configDefaults, type AdvancedCameraCardConfig } from '../config/schema/types';
import type { ThemeConfig, ThemeName } from '../config/schema/view';
+1 -1
View File
@@ -1,4 +1,4 @@
import type { StyleInfo } from 'lit/directives/style-map';
import type { StyleInfo } from 'lit/directives/style-map.js';
import type { CameraManager } from '../camera-manager/manager';
import type { CallManager } from '../card-controller/call/manager';
-2
View File
@@ -7,7 +7,6 @@ import type {
PTZControlsConfig,
PTZControlType,
} from '../../config/schema/common/controls/ptz.js';
import type { HomeAssistant } from '../../ha/types.js';
import type { Interaction } from '../../types.js';
import {
createPTZControlsAction,
@@ -20,7 +19,6 @@ export class PTZController {
private _host: HTMLElement;
private _config: PTZControlsConfig | null = null;
private _hass: HomeAssistant | null = null;
private _cameraManager: CameraManager | null = null;
private _cameraID: string | null = null;
+1 -9
View File
@@ -1,7 +1,3 @@
import type {
CreatePluginType,
LoosePluginType,
} from 'embla-carousel/components/Plugins';
import {
html,
LitElement,
@@ -18,14 +14,10 @@ import carouselStyle from '../scss/carousel.scss';
import {
CarouselController,
type CarouselDirection,
type EmblaCarouselPlugins,
} from '../utils/embla/carousel-controller';
import { getTextDirection } from '../utils/text-direction';
export type EmblaCarouselPlugins = CreatePluginType<
LoosePluginType,
Record<string, unknown>
>[];
@customElement('advanced-camera-card-carousel')
export class AdvancedCameraCardCarousel extends LitElement {
@property({ attribute: true, reflect: true })
-1
View File
@@ -51,7 +51,6 @@ export class AdvancedCameraCardSelect extends ScopedRegistryHost(LitElement) {
@property({ attribute: true, type: Boolean })
public clearable?: boolean = false;
private _previouslyReportedValue?: SelectValues;
private _refSelect: Ref<SelectElement> = createRef();
static elementDefinitions = {
+1 -1
View File
@@ -4,7 +4,7 @@ import {
differenceInSeconds,
format,
} from 'date-fns';
import type { StyleInfo } from 'lit/directives/style-map';
import type { StyleInfo } from 'lit/directives/style-map.js';
import { isEqualWith, mergeWith, round, uniq } from 'lodash-es';
import { AdvancedCameraCardError } from '../types';
+5 -6
View File
@@ -1,9 +1,8 @@
import EmblaCarousel, { type EmblaCarouselType } from 'embla-carousel';
import EmblaCarousel, {
type EmblaCarouselType,
type EmblaPluginType,
} from 'embla-carousel';
import { WheelGesturesPlugin } from 'embla-carousel-wheel-gestures';
import type {
CreatePluginType,
LoosePluginType,
} from 'embla-carousel/components/Plugins';
import { isEqual } from 'lodash-es';
import type { TransitionEffect } from '../../config/schema/common/transition-effect.js';
@@ -16,7 +15,7 @@ export interface CarouselSelected {
element: HTMLElement;
}
type EmblaCarouselPlugins = CreatePluginType<LoosePluginType, Record<string, unknown>>[];
export type EmblaCarouselPlugins = EmblaPluginType[];
export type CarouselDirection = 'vertical' | 'horizontal';