Duplicate rest entry _2

Hi, I have a few REST sensors in the configuration.yaml file. After updating from 2024.7.4 to 2024.10.1 some of the REST entites all of a sudden got duplicated with _2 at the end of the name. Why did this happen and how can I fix it?
All sensor have unique ID.
Below is one of the sensors YAML entry:

 sensor:
  - platform: rest
    name: vp_hall_energi
    scan_interval: 30
    force_update: true
    json_attributes:
      - voltage
      - current
      - apower
      - freq
    resource: http://192.168.1.12/rpc/PM1.GetStatus?id=0
    value_template: "{{ value_json.aenergy.total | multiply(0.001) | round(6) }}"
    unit_of_measurement: kWh
    device_class: energy
    unique_id: sensor.vp_hall_shelly_pm_mini_00

Deleting the old sesnor and renaming the entity id to remove the 2 would be my choice.

1 Like

But then i loose all the history, is there any other way so that i can keep the history?

Afaik this is the way to keep history, because that is linked to the old entity id.