mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-09 04:35:25 +03:00
Formatting
This commit is contained in:
parent
0e87dac646
commit
38de03a56f
@ -343,6 +343,7 @@ class MotionConfig(FrigateBaseModel):
|
|||||||
def serialize_mask(self, value: Any, info):
|
def serialize_mask(self, value: Any, info):
|
||||||
return self.raw_mask
|
return self.raw_mask
|
||||||
|
|
||||||
|
|
||||||
class RuntimeMotionConfig(MotionConfig):
|
class RuntimeMotionConfig(MotionConfig):
|
||||||
raw_mask: Union[str, List[str]] = ""
|
raw_mask: Union[str, List[str]] = ""
|
||||||
mask: np.ndarray = None
|
mask: np.ndarray = None
|
||||||
|
|||||||
@ -1384,7 +1384,7 @@ def end_event(event_id):
|
|||||||
|
|
||||||
@bp.route("/config")
|
@bp.route("/config")
|
||||||
def config():
|
def config():
|
||||||
config = current_app.frigate_config.model_dump(mode='json')
|
config = current_app.frigate_config.model_dump(mode="json")
|
||||||
|
|
||||||
# remove the mqtt password
|
# remove the mqtt password
|
||||||
config["mqtt"].pop("password", None)
|
config["mqtt"].pop("password", None)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user