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

@@ -149,6 +149,7 @@ class MqttClient(Communicator): # type: ignore[misc]
"recordings",
"snapshots",
"detect",
"audio",
"motion",
"improve_contrast",
"motion_threshold",

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={