From 75f28b4b172c4793adc72e2c3fcc496e40590a21 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 27 Jun 2022 00:32:00 +0100 Subject: [PATCH] key --- bridge_master.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bridge_master.py b/bridge_master.py index 4018a84..71a1f32 100644 --- a/bridge_master.py +++ b/bridge_master.py @@ -762,6 +762,12 @@ def options_config(): _options[k] = v logger.debug('(OPTIONS) Options found for %s',_system) + if CONFIG['SYSTEMS'][_system]['_default_options'] != CONFIG['SYSTEMS'][_system]['OPTIONS']: + if _options_key in CONFIG['SYSTEMS'][_system] and CONFIG['SYSTEMS'][_system]['_options_key'] and 'KEY' in _options and CONFIG['SYSTEMS'][_system]['_options_key'] != _options['KEY']: + logger.warning('(OPTIONS) for system %s, options key does not match, ignoring',_system) + continue + + if 'DIAL' in _options: _options['DEFAULT_REFLECTOR'] = _options.pop('DIAL') if 'TIMER' in _options: