Fix small audio events details (#6978)

* Fix missed audio details

* Add mqtt docs

* Delete instead of setting to None
This commit is contained in:
Nicolas Mowen
2023-07-01 10:19:14 -06:00
committed by GitHub
parent c3b313a70d
commit 7ee17c7af8
4 changed files with 15 additions and 5 deletions

View File

@@ -206,7 +206,7 @@ class AudioEventMaintainer(threading.Thread):
now - detection.get("last_detection", now)
> self.config.audio.max_not_heard
):
self.detections[detection["label"]] = None
del self.detections[detection["label"]]
requests.put(
f"{FRIGATE_LOCALHOST}/api/events/{detection['id']}/end",
json={