chore: Enforce a few house rules via eslint (#2539)
This commit is contained in:
committed by
dermotduffy
parent
5572ec728e
commit
921d45e577
@@ -25,7 +25,7 @@ import { onAbort } from '../utils/abort-signal.js';
|
||||
import './ha-hls-player.js';
|
||||
import './ha-web-rtc-player.js';
|
||||
|
||||
customElements.whenDefined('ha-camera-stream').then(() => {
|
||||
void customElements.whenDefined('ha-camera-stream').then(() => {
|
||||
// ========================================================================================
|
||||
// From:
|
||||
// - https://github.com/home-assistant/frontend/blob/dev/src/data/camera.ts
|
||||
@@ -56,7 +56,7 @@ customElements.whenDefined('ha-camera-stream').then(() => {
|
||||
|
||||
// ha-camera-stream renders up to three inner players (MJPEG / HLS /
|
||||
// WebRTC), only one visible. Inner leaves all fire `media:loaded`
|
||||
// independently — we suppress those at this boundary (`stopPropagation` in
|
||||
// independently -- we suppress those at this boundary (`stopPropagation` in
|
||||
// `_captureInnerLoad`), cache the latest per type, and republish the
|
||||
// visible one's info via our own source controller in `updated()`.
|
||||
private _mediaLoadedInfoPerStream: Record<StreamType, MediaLoadedInfo> = {};
|
||||
|
||||
Reference in New Issue
Block a user