code: def _action_enabled(self, event, action):
          
          event_actions = self._aconfig.get(event)
          if event_actions is None:
              return True
          if event_actions is False:
              return False
          return action in event_actions
docs: Check if an action for a notification is enabled.