Reolink add support for flv protocol (#85576)

This commit is contained in:
starkillerOG 2023-01-10 12:16:48 +01:00 committed by GitHub
parent 5d7f33ad76
commit 105b34bd77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ async def async_setup_entry(
cameras = []
for channel in host.api.channels:
streams = ["sub", "main", "snapshots"]
if host.api.protocol == "rtmp":
if host.api.protocol in ["rtmp", "flv"]:
streams.append("ext")
for stream in streams:

View File

@ -42,7 +42,7 @@ class ReolinkOptionsFlowHandler(config_entries.OptionsFlow):
vol.Required(
CONF_PROTOCOL,
default=self.config_entry.options[CONF_PROTOCOL],
): vol.In(["rtsp", "rtmp"]),
): vol.In(["rtsp", "rtmp", "flv"]),
}
),
)