diff --git a/oadr2/event.py b/oadr2/event.py index 6c86e5d..bb01dba 100644 --- a/oadr2/event.py +++ b/oadr2/event.py @@ -180,7 +180,8 @@ def handle_payload(self, payload): old_mod_num = get_mod_number(old_event, self.ns_map) # get it's mod number # For the events we need to reply to, make our "opts," and check the status of the event - if (old_event is None) or (e_mod_num > old_mod_num) or (response_required == 'always'): + if ((old_event is None) or (e_mod_num > old_mod_num) or (response_required == 'always'))\ + and (response_required != "never"): # By default, we optIn and have an "OK," status (200) opt = 'optIn' status = '200'