code: def _adjust_object_lists(obj):
      '''
      For creation or update of object that have attribute which contains a list Zabbix awaits plain list of IDs while
      querying Zabbix for same object returns list of dicts
  
      :param obj: Zabbix object parameters
      '''
      for subcomp in TEMPLATE_COMPONENT_DEF:
          if subcomp in obj and TEMPLATE_COMPONENT_DEF[subcomp]['adjust']:
              obj[subcomp] = [item[TEMPLATE_COMPONENT_DEF[subcomp]['qidname']] for item in obj[subcomp]f _adjust_object_lists(obj):
      '''
      For creation or update of object that have attribute which contains a list Zabbix awaits plain list of IDs while
      querying Zabbix for same object returns list of dicts
  
      :param obj: Zabbix object parameters
      '''
      for subcomp in TEMPLATE_COMPONENT_DEF:
          if subcomp in obj and TEMPLATE_COMPONENT_DEF[subcomp]['adjust']:
              obj[subcomp] = [item[TEMPLATE_COMPONENT_DEF[subcomp]['qidname']] for item in obj[subcomp]]
docs: For creation or update of object that have attribute which contains a list Zabbix awaits plain list of IDs while
      querying Zabbix for same object returns list of dicts
  
      :param obj: Zabbix object parameters