mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-20 15:54:13 +08:00
Update sentryd.py
This commit is contained in:
@@ -140,9 +140,10 @@ class SentryMode:
|
||||
"imagePaths": [],
|
||||
"message": "Movement detected while parked." if kind == "warning" else "Sustained movement detected while parked.",
|
||||
}
|
||||
if kind == "alarm":
|
||||
if kind in {"warning", "alarm"}:
|
||||
event["imagePaths"] = self._capture_images(event_id)
|
||||
self._trim_old_events()
|
||||
if kind == "alarm":
|
||||
self._trim_old_events()
|
||||
self._publish_event(event)
|
||||
|
||||
def update(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user