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

@@ -29,6 +29,7 @@ class ExternalEventProcessor:
self,
camera: str,
label: str,
source_type: str,
sub_label: Optional[str],
duration: Optional[int],
include_recording: bool,
@@ -61,6 +62,7 @@ class ExternalEventProcessor:
"thumbnail": thumbnail,
"has_clip": camera_config.record.enabled and include_recording,
"has_snapshot": True,
"type": source_type,
},
)
)