diff --git a/src/components/ha-web-rtc-player.ts b/src/components/ha-web-rtc-player.ts index 84707673d1a9..aca8ff001d74 100644 --- a/src/components/ha-web-rtc-player.ts +++ b/src/components/ha-web-rtc-player.ts @@ -109,7 +109,7 @@ class HaWebRtcPlayer extends LitElement { let candidates = ""; // Build an Offer SDP string with ice candidates const iceResolver = new Promise((resolve) => { peerConnection.addEventListener("icecandidate", async (event) => { - if (!event.candidate) { + if (!event.candidate?.candidate) { resolve(); // Gathering complete return; }