The documentation linked above has the code there to get it to work. Replace your YAML code sections with the example in the documentation.
With the update, all the configuration is now done in HA and not in the ESPHome code so all the gate thresholds are defined differently and in the following format now:
sensor:
- platform: ld2410
g0:
move_energy:
name: g0 move energy
still_energy:
name: g0 still energy
g1:
move_energy:
name: g1 move energy
still_energy:
name: g1 still energy
number:
- platform: ld2410
g0:
move_threshold:
name: g0 move threshold
still_threshold:
name: g0 still threshold
g1:
move_threshold:
name: g1 move threshold
still_threshold:
name: g1 still threshold
and so on.
You should also try using the search function on this forum. There is a long thread with extensive information on the LD2410 sensor with ESPHome: