From 2f974078e0094e3c1dc402aa25094f7770ec83d9 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Mon, 4 Nov 2024 17:34:08 +0100 Subject: [PATCH] Only show webrtc if it has video (#22659) --- src/components/ha-camera-stream.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/ha-camera-stream.ts b/src/components/ha-camera-stream.ts index 52a182d7a2..29bf3a7860 100644 --- a/src/components/ha-camera-stream.ts +++ b/src/components/ha-camera-stream.ts @@ -102,7 +102,9 @@ export class HaCameraStream extends LitElement { .entityid=${this.stateObj.entity_id} .posterUrl=${this._posterUrl} @streams=${this._handleHlsStreams} - class=${!this._streamType && this._webRtcStreams ? "hidden" : ""} + class=${!this._streamType && this._webRtcStreams?.hasVideo + ? "hidden" + : ""} >` : nothing} ${this._streamType === STREAM_TYPE_WEB_RTC ||