Formatting

This commit is contained in:
Nick Mowen 2022-10-14 14:46:58 -06:00
parent 7f9818fe17
commit 8e7c545eee

View File

@ -596,7 +596,12 @@ class CameraConfig(FrigateBaseModel):
# add roles to the input if there is only one # add roles to the input if there is only one
if len(config["ffmpeg"]["inputs"]) == 1: if len(config["ffmpeg"]["inputs"]) == 1:
config["ffmpeg"]["inputs"][0]["roles"] = ["record", "rtmp", "detect", "restream"] config["ffmpeg"]["inputs"][0]["roles"] = [
"record",
"rtmp",
"detect",
"restream",
]
super().__init__(**config) super().__init__(**config)