Skip to content

NVR with realtime local object detection for IP cameras

Fix incorrect recording config access (#13524)

Nicolas Mowen7626dd239a03
diff --git a/frigate/events/audio.py b/frigate/events/audio.py
index 6a7736bd36..4302abb68a 100644
--- a/frigate/events/audio.py
+++ b/frigate/events/audio.py
@@ -288,10 +288,7 @@ class AudioEventMaintainer(threading.Thread):
resp = requests.put(
f"{FRIGATE_LOCALHOST}/api/events/{detection['id']}/end",
- json={
- "end_time": detection["last_detection"]
- + self.config.record.events.post_capture
- },
+ json={"end_time": detection["last_detection"]},
)
if resp.status_code == 200: