Fix incorrect recording config access (#13524)

* Fix incorrect access

* Formatting
This commit is contained in:
Nicolas Mowen authored and GitHub committed 2024-09-03 16:27:19 -05:00
1 parent 9afa1354da
commit 7626dd239a
1 file changed
+1 -4
+1 -4
View File
@@ -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: