@@ -68,19 +68,22 @@ def get_codec() -> str:
68
68
): check_for_hwaccels ,
69
69
Optional ("codec" , default = get_codec ()): str ,
70
70
Optional ("filter_args" , default = []): list ,
71
- Optional ("motion_detection" , default = None ): {
72
- Optional ("interval" ): int ,
73
- Optional ("trigger" ): bool ,
74
- Optional ("timeout" ): bool ,
75
- Optional ("width" ): int ,
76
- Optional ("height" ): int ,
77
- Optional ("area" ): int ,
78
- Optional ("frames" ): int ,
79
- },
80
- Optional ("object_detection" , default = None ): {
81
- Optional ("interval" ): int ,
82
- Optional ("labels" ): LABELS_SCHEMA ,
83
- },
71
+ Optional ("motion_detection" , default = None ): Any (
72
+ {
73
+ Optional ("interval" ): int ,
74
+ Optional ("trigger" ): bool ,
75
+ Optional ("timeout" ): bool ,
76
+ Optional ("width" ): int ,
77
+ Optional ("height" ): int ,
78
+ Optional ("area" ): int ,
79
+ Optional ("frames" ): int ,
80
+ },
81
+ None ,
82
+ ),
83
+ Optional ("object_detection" , default = None ): Any (
84
+ {Optional ("interval" ): int , Optional ("labels" ): LABELS_SCHEMA ,},
85
+ None ,
86
+ ),
84
87
}
85
88
],
86
89
ensure_mqtt_name ,
0 commit comments