From 71f9fdcc16e3cad8e965653c762c41eb994921bd Mon Sep 17 00:00:00 2001 From: Esa Tikka Date: Mon, 27 May 2024 07:20:50 +0300 Subject: [PATCH] Fix motion detection status check --- motioneye/motionctl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/motioneye/motionctl.py b/motioneye/motionctl.py index bc29abe3e..78cdc7245 100644 --- a/motioneye/motionctl.py +++ b/motioneye/motionctl.py @@ -231,7 +231,7 @@ async def get_motion_detection(camera_id) -> utils.GetMotionDetectionResult: return utils.GetMotionDetectionResult(None, error=utils.pretty_http_error(resp)) resp_body = resp.body.decode('utf-8') - enabled = bool(resp_body.count('active')) + enabled = bool(resp_body.lower().count('active')) logging.debug( f"motion detection is {['disabled', 'enabled'][enabled]} for camera with id {id}"