mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 17:25:22 +03:00
Fix processing issue
This commit is contained in:
parent
1ef977d340
commit
55640c1d46
@ -859,7 +859,7 @@ class TrackedObjectProcessor(threading.Thread):
|
||||
now = int(time.time())
|
||||
|
||||
# If no motion, make sure the off_delay has passed
|
||||
if now - self.last_motion >= mqtt_delay:
|
||||
if now - self.last_motion_updates.get(camera, 0) >= mqtt_delay:
|
||||
self.client.publish(
|
||||
f"{self.topic_prefix}/{camera}/motion/detected",
|
||||
False,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user