From 7626dd239a0360a4d0698e975cb02eb19486c2cb Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Tue, 3 Sep 2024 15:27:19 -0600 Subject: [PATCH] Fix incorrect recording config access (#13524) * Fix incorrect access * Formatting --- frigate/events/audio.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/frigate/events/audio.py b/frigate/events/audio.py index 6a7736bd3..4302abb68 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: