mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-28 23:06:13 +02:00
Add config validators (#22704)
* add validator for detect width and height require both or neither * coerce semantic search model string to enum Built-in model names (jinav1, jinav2) get converted to the enum, genai provider names that don't match stay as plain strings and follow the existing validation path * formatting
This commit is contained in:
@@ -1188,7 +1188,7 @@ class TestConfig(unittest.TestCase):
|
||||
def test_global_detect_merge(self):
|
||||
config = {
|
||||
"mqtt": {"host": "mqtt"},
|
||||
"detect": {"max_disappeared": 1, "height": 720},
|
||||
"detect": {"max_disappeared": 1, "height": 720, "width": 1280},
|
||||
"cameras": {
|
||||
"back": {
|
||||
"ffmpeg": {
|
||||
|
||||
Reference in New Issue
Block a user