Fix incorrect recording config access (#13524)

* Fix incorrect access

* Formatting
This commit is contained in:
Nicolas Mowen 2024-09-03 15:27:19 -06:00 committed by GitHub
parent 9afa1354da
commit 7626dd239a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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: