Read function does not detect changes

Hello,

I have this piece of HCL code:

resource "netbox_tenant" "tenant_test" {
  ...                                           
  custom_field {                                                                
    name  = "TestBoolean"                                                       
    kind  = "bool"                                                              
    value = "false"                                                             
  }                                                                             
                                                                                
  custom_field {                                                                
    name  = "TestInteger"                                                       
    kind  = "int"                                                               
    value = "10"                                                                
  }                                                                         
}

The definition in the provider is like this:

"custom_field": {                                                         
        Type:     schema.TypeSet,                                               
        Optional: true,                                                         
        Elem: &schema.Resource{                                                 
          Schema: map[string]*schema.Schema{                                    
            "name": {                                                           
              Type:     schema.TypeString,                                      
              Required: true,                                                   
            },                                                                  
            "kind": {                                                           
              Type:     schema.TypeString,                                      
              Required: true,                                                   
              ForceNew: true,                                                   
              ValidateFunc: validation.StringInSlice([]string{"string",         
                "bool", "int"}, false),                                         
            },                                                                  
            "value": {                                                          
              Type:     schema.TypeString,                                      
              Required: true,                                                   
            },                                                                  
          },                                                                    
        },                                                                      
      },

In the read function I have d.Set(“custom_fields”, convertApiToCF(tenant.CustomFields)).
convertApiToCF is returning a type [ ]map[string]string, is-it correct ?
Terraform is not detecting changes …

Thanks.

In addition, the data are stored like that in terraform tfstate:

 "tenant_test",                                                    
      "provider": "provider.netbox",                                            
      "instances": [                                                            
        {                                                                       
          "schema_version": 0,                                                  
          "attributes": {                                                       
            "comments": "Some test comments",                                   
            "custom_field": [                                                   
              {                                                                 
                "kind": "bool",                                                 
                "name": "TestBoolean",                                          
                "value": "false"                                                
              },                                                                
              {                                                                 
                "kind": "int",                                                  
                "name": "TestInteger",
"value": "10"                                                   
              }                                                                 
            ],                                                                  
            "description": "Tenant created by terraform",                       
            "id": "22",                                                         
            "name": "Test_Tenant",                                              
            "slug": "Test_Tenant",                                              
            "tags": [                                                           
              "tag1",                                                           
              "tag3"                                                            
            ],                                                                  
            "tenant_group_id": 20                                               
          },                                                                    
          "private": "bnVsbA==",                                                
          "dependencies": [                                                     
            "netbox_tenancy_tenant_group.tenant_group_test"                     
          ]                                                                     
        }                                                                       
      ]                                                                         
    },