From b04b16128143feb93143b157a38b470ea8be0f20 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Thu, 26 Nov 2015 20:54:47 +0200 Subject: [PATCH] fixed boolean extra motion options --- motioneye/config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/motioneye/config.py b/motioneye/config.py index d3e1b69..2d653fe 100644 --- a/motioneye/config.py +++ b/motioneye/config.py @@ -1262,6 +1262,9 @@ def motion_camera_dict_to_ui(data): extra_options = [] for name, value in data.iteritems(): if name not in _KNOWN_MOTION_OPTIONS and not name.startswith('@'): + if isinstance(value, bool): + value = ['off', 'on'][value] # boolean values should be transferred as on/off + extra_options.append((name, value)) ui['extra_options'] = extra_options -- 2.39.5