From da7dd47436777b118a069f7c2d1943c00fbeac96 Mon Sep 17 00:00:00 2001 From: ryzendigo Date: Tue, 17 Mar 2026 16:11:36 +0800 Subject: [PATCH] fix: apply same or operator fix to review/maintainer.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same issue as record/maintainer.py — the condition was always true because the bare enum value is truthy. --- frigate/review/maintainer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frigate/review/maintainer.py b/frigate/review/maintainer.py index a51c73f88..4dc1d8e6a 100644 --- a/frigate/review/maintainer.py +++ b/frigate/review/maintainer.py @@ -642,7 +642,10 @@ class ReviewSegmentMaintainer(threading.Thread): _, audio_detections, ) = data - elif topic == DetectionTypeEnum.api.value or DetectionTypeEnum.lpr.value: + elif ( + topic == DetectionTypeEnum.api.value + or topic == DetectionTypeEnum.lpr.value + ): ( camera, frame_time,