mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-08-08 13:51:01 +02:00
Fix semantic triggers config typing
This commit is contained in:
parent
13c7f9ebab
commit
2e39f20996
@ -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",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user