mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 18:55:23 +03:00
Delete instead of setting to None
This commit is contained in:
parent
4130c5d011
commit
f40d2103ad
@ -206,7 +206,7 @@ class AudioEventMaintainer(threading.Thread):
|
|||||||
now - detection.get("last_detection", now)
|
now - detection.get("last_detection", now)
|
||||||
> self.config.audio.max_not_heard
|
> self.config.audio.max_not_heard
|
||||||
):
|
):
|
||||||
self.detections[detection["label"]] = None
|
del self.detections[detection["label"]]
|
||||||
requests.put(
|
requests.put(
|
||||||
f"{FRIGATE_LOCALHOST}/api/events/{detection['id']}/end",
|
f"{FRIGATE_LOCALHOST}/api/events/{detection['id']}/end",
|
||||||
json={
|
json={
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user