chore: Standardize code, comments and docs on US-English spelling (#2707)

This commit is contained in:
Dermot Duffy
2026-08-23 08:57:41 -07:00
committed by GitHub
parent 965f2b4c9d
commit 03d9df8282
48 changed files with 94 additions and 89 deletions
@@ -96,7 +96,7 @@ export class ActionsManager implements ActionsExecutor {
ev: Event | CustomEvent<ActionConfig>,
): Promise<void> => {
if (!('detail' in ev)) {
// The event may or may not be a CustomEvent object. For example, whilst
// The event may or may not be a CustomEvent object. For example, while
// this card doesn't use custom-card-helpers, embedded elements may:
// https://github.com/custom-cards/custom-card-helpers/blob/master/src/fire-event.ts#L70
return;
+1 -1
View File
@@ -1,7 +1,7 @@
import type { AdvancedCameraCardConfig } from '../../config/schema/types';
// The card state exposed via the `acc` namespace AND as the
// `trigger.from_acc`/`to_acc` before/after snapshots (the card analogue of HA's
// `trigger.from_acc`/`to_acc` before/after snapshots (the card analog of HA's
// full `trigger.from_state`/`to_state`).
export interface TemplateAdvancedCameraCardState {
camera?: string;
@@ -25,7 +25,7 @@ export class SubstreamViewModifier implements ViewModifier {
return;
}
// A stream equal to the camera itself is semantically "no substream";
// normalise it to a cleared override so the map doesn't carry self-
// normalize it to a cleared override so the map doesn't carry self-
// referential entries.
if (!this._options.stream || this._options.stream === cameraID) {
view.context?.live?.overrides?.delete(cameraID);