fix: Avoid inadvertently resetting the go2rtc connection in some circumstances (#1953)

- Closes #1914
This commit is contained in:
Dermot Duffy
2025-03-08 20:27:23 -08:00
committed by GitHub
parent 480c3d0ab7
commit c65ee3f0f2
@@ -142,7 +142,7 @@ export class AdvancedCameraCardGo2RTC extends LitElement implements MediaPlayer
if (
this._player &&
changedProps.has('microphoneState') &&
this._player?.microphoneStream !== this.microphoneState?.stream
this._player.microphoneStream !== (this.microphoneState?.stream ?? null)
) {
this._player.microphoneStream = this.microphoneState?.stream ?? null;