From 1d6bc40bfff971d3148a51f2ecdd85a9199342c3 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Fri, 3 Jun 2022 10:35:49 -0700 Subject: [PATCH] fix no_wake_up_before_first_use to allow None --- jc/parsers/postconf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jc/parsers/postconf.py b/jc/parsers/postconf.py index 00a8715d..1ce6172b 100644 --- a/jc/parsers/postconf.py +++ b/jc/parsers/postconf.py @@ -77,6 +77,8 @@ def _process(proc_data: List[Dict]) -> List[Dict]: for item in proc_data: if item['wake_up_time'].endswith('?'): item['no_wake_up_before_first_use'] = True + elif item['wake_up_time'] == '-': + item['no_wake_up_before_first_use'] = None else: item['no_wake_up_before_first_use'] = False