1
0
mirror of https://github.com/elisspace/core.git synced 2026-08-30 08:02:02 +00:00

Revert "fix decode"

This reverts commit b049c40cc3.
This commit is contained in:
J. Nick Koston
2023-05-24 17:54:11 -05:00
parent b049c40cc3
commit 61e890029a

View File

@@ -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)