diff options
Diffstat (limited to 'control/gen-fan-zone-defs.py')
-rwxr-xr-x | control/gen-fan-zone-defs.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/control/gen-fan-zone-defs.py b/control/gen-fan-zone-defs.py index 40bec2c..b89e5bc 100755 --- a/control/gen-fan-zone-defs.py +++ b/control/gen-fan-zone-defs.py @@ -393,8 +393,11 @@ def getEvent(zone_num, zone_conditions, e, events_data): return event['groups'] = grps - # Add set speed actions and function parameters - event['action'] = getActions(e, e, events_data) + # Add optional set speed actions and function parameters + event['action'] = [] + if ('actions' in e) and \ + (e['actions'] is not None): + event['action'] = getActions(e, e, events_data) # Add signal handlers signals = [] |