Make go2rtc supported streams a frozenset (#127439)
Avoids the linear search of the tuplepull/127448/head
parent
49882112ac
commit
7cd4f78767
|
@ -15,7 +15,8 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
|||
from .const import CONF_BINARY
|
||||
from .server import Server
|
||||
|
||||
_SUPPORTED_STREAMS = (
|
||||
_SUPPORTED_STREAMS = frozenset(
|
||||
(
|
||||
"bubble",
|
||||
"dvrip",
|
||||
"expr",
|
||||
|
@ -41,6 +42,7 @@ _SUPPORTED_STREAMS = (
|
|||
"tcp",
|
||||
"webrtc",
|
||||
"webtorrent",
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue