From 84533b88432104ec149bd256e1872a7bccbe5363 Mon Sep 17 00:00:00 2001 From: Allen Porter Date: Mon, 18 Oct 2021 03:42:34 -0700 Subject: [PATCH] Rename `stream_type` to `frontend_stream_type` (#10298) --- src/components/ha-camera-stream.ts | 8 ++++---- src/data/camera.ts | 2 +- src/dialogs/more-info/controls/more-info-camera.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/ha-camera-stream.ts b/src/components/ha-camera-stream.ts index c19ee6d71f..1a73c3c673 100644 --- a/src/components/ha-camera-stream.ts +++ b/src/components/ha-camera-stream.ts @@ -52,7 +52,7 @@ class HaCameraStream extends LitElement { this.stateObj && (changedProps.get("stateObj") as CameraEntity | undefined)?.entity_id !== this.stateObj.entity_id && - this.stateObj!.attributes.stream_type === STREAM_TYPE_HLS + this.stateObj!.attributes.frontend_stream_type === STREAM_TYPE_HLS ) { this._forceMJPEG = undefined; this._url = undefined; @@ -84,7 +84,7 @@ class HaCameraStream extends LitElement { .alt=${`Preview of the ${computeStateName(this.stateObj)} camera.`} />`; } - if (this.stateObj.attributes.stream_type === STREAM_TYPE_HLS && true) { + if (this.stateObj.attributes.frontend_stream_type === STREAM_TYPE_HLS) { return this._url ? html` ` : html``; } - if (this.stateObj.attributes.stream_type === STREAM_TYPE_WEB_RTC) { + if (this.stateObj.attributes.frontend_stream_type === STREAM_TYPE_WEB_RTC) { return html`