Display name not matched with entity_id

- name: hub1
  type: tcp
  host: xxx.xxx.xxx.xxx
  port: xxxx
  delay: 2
  message_wait_milliseconds: 0
  timeout: 5
  retries: 0
  retry_on_empty: false
    - name: "xxxxxxxxxxxxxxx"
      unit_of_measurement: V
      data_type: float32
      state_class: measurement
      count: 2
      scale: 1
      offset: 0
      slave: 1
      address: 0
      input_type: holding
      scan_interval: 10
      unique_id: "xxxxxxxxxxxxx"

when I set up this sensor, I found out that the entity_id of created sensor doesn’t match with sensor’s name(it normally does), why this happened? Thanks