mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Make go2rtc supported streams a frozenset (#127439)
Avoids the linear search of the tuple
This commit is contained in:
parent
49882112ac
commit
7cd4f78767
@ -15,7 +15,8 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
|||||||
from .const import CONF_BINARY
|
from .const import CONF_BINARY
|
||||||
from .server import Server
|
from .server import Server
|
||||||
|
|
||||||
_SUPPORTED_STREAMS = (
|
_SUPPORTED_STREAMS = frozenset(
|
||||||
|
(
|
||||||
"bubble",
|
"bubble",
|
||||||
"dvrip",
|
"dvrip",
|
||||||
"expr",
|
"expr",
|
||||||
@ -42,6 +43,7 @@ _SUPPORTED_STREAMS = (
|
|||||||
"webrtc",
|
"webrtc",
|
||||||
"webtorrent",
|
"webtorrent",
|
||||||
)
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user