Fix semantic triggers config typing

This commit is contained in:
Nicolas Mowen 2025-07-18 12:35:05 -06:00
parent 13c7f9ebab
commit 2e39f20996

View File

@ -142,7 +142,7 @@ class TriggerConfig(FrigateBaseModel):
gt=0.0, gt=0.0,
le=1.0, le=1.0,
) )
actions: Optional[List[TriggerAction]] = Field( actions: List[TriggerAction] = Field(
default=[], title="Actions to perform when trigger is matched" default=[], title="Actions to perform when trigger is matched"
) )
@ -150,8 +150,8 @@ class TriggerConfig(FrigateBaseModel):
class CameraSemanticSearchConfig(FrigateBaseModel): class CameraSemanticSearchConfig(FrigateBaseModel):
triggers: Optional[Dict[str, TriggerConfig]] = Field( triggers: Dict[str, TriggerConfig] = Field(
default=None, default={},
title="Trigger actions on tracked objects that match existing thumbnails or descriptions", title="Trigger actions on tracked objects that match existing thumbnails or descriptions",
) )