mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 09:45:22 +03:00
Fix check
This commit is contained in:
parent
43f17de601
commit
ddb7904eb5
@ -738,7 +738,7 @@ def verify_valid_live_stream_name(
|
||||
frigate_config: FrigateConfig, camera_config: CameraConfig
|
||||
) -> None:
|
||||
"""Verify that a restream exists to use for live view."""
|
||||
if camera_config.live.stream_name not in frigate_config.go2rtc.streams.keys():
|
||||
if camera_config.live.stream_name not in frigate_config.go2rtc.dict().get("streams", {}).keys():
|
||||
return ValueError(
|
||||
f"No restream with name {camera_config.live.stream_name} exists for camera {camera_config.name}."
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user