Delete instead of setting to None

This commit is contained in:
Nicolas Mowen 2023-07-01 09:49:27 -06:00 committed by GitHub
parent 4130c5d011
commit f40d2103ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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