Add designator when events are from the api (#6997)

* Add designator when events are custom

* Add type field and set via API
This commit is contained in:
Nicolas Mowen
2023-07-03 08:48:00 -06:00
committed by GitHub
parent 83edf9574e
commit 58c6ef1e12
4 changed files with 9 additions and 5 deletions

View File

@@ -884,6 +884,7 @@ def create_event(camera_name, label):
event_id = current_app.external_processor.create_manual_event(
camera_name,
label,
json.get("source_type", "api"),
json.get("sub_label", None),
json.get("duration", 30),
json.get("include_recording", True),