From 61e890029a91013bbdcd0428dc8ffa2d044dbda3 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 24 May 2023 17:54:11 -0500 Subject: [PATCH] Revert "fix decode" This reverts commit b049c40cc38e4cf1c072859cba7224db8cc2f541. --- homeassistant/components/rtsp_to_webrtc/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/homeassistant/components/rtsp_to_webrtc/__init__.py b/homeassistant/components/rtsp_to_webrtc/__init__.py index 62eb4f52c7..1b6e81c073 100644 --- a/homeassistant/components/rtsp_to_webrtc/__init__.py +++ b/homeassistant/components/rtsp_to_webrtc/__init__.py @@ -20,7 +20,6 @@ from __future__ import annotations import asyncio import contextlib -from functools import partial import logging from typing import Any @@ -123,9 +122,7 @@ async def _async_setup_internal_server(hass: HomeAssistant, entry: ConfigEntry) # open media source _LOGGER.debug("Starting stream %s", stream_source) - player = await hass.async_add_executor_job( - partial(MediaPlayer, stream_source, decode=False) - ) + player = await hass.async_add_executor_job(MediaPlayer, stream_source) with contextlib.suppress(AttributeError): peer_connection.addTrack(player.audio)