ModBus Serial-new configuration

Hi
I have in configuration.yaml this config:

modbus:
  type: serial
  method: rtu
  port: /dev/serial/by-id/usb-1axx_xxx0-Serxxxxi-xxxx-xxxxx
  baudrate: 9600
  stopbits: 1
  bytesize: 8
  parity: N

and in sensors.yaml i have this config for SDM630 counter:

- platform: modbus
  scan_interval: 10
  registers:
  # Voltage
    - name: SDM630 L1 Voltage
      unit_of_measurement: V
      register: 0
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
    - name: SDM630 L2 Voltage
      unit_of_measurement: V
      register: 2
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
    - name: SDM630 L3 Voltage
      unit_of_measurement: V
      register: 4
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
  # Current
    - name: SDM630 L1 Current
      unit_of_measurement: A
      register: 6
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
    - name: SDM630 L2 Current
      unit_of_measurement: A
      register: 8
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
    - name: SDM630 L3 Current
      unit_of_measurement: A
      register: 10
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
  # Power
    - name: SDM630 L1 Power
      unit_of_measurement: W
      register: 12
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
    - name: SDM630 L2 Power
      unit_of_measurement: W
      register: 14
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
    - name: SDM630 L3 Power
      unit_of_measurement: W
      register: 16
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
    # - name: L1 VA
    #   unit_of_measurement: VA
    #   register: 18
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L2 VA
    #   unit_of_measurement: VA
    #   register: 20
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L3 VA
    #   unit_of_measurement: VA
    #   register: 22
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L1 VAr
    #   unit_of_measurement: VAr
    #   register: 24
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L2 VAr
    #   unit_of_measurement: VAr
    #   register: 26
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L3 VAr
    #   unit_of_measurement: VAr
    #   register: 28
    #   data_type: float
    #   precision: 2
    #   count: 2
    - name: SDM630 L1 PowerFactor
      unit_of_measurement: '%'
      register: 30
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
    - name: SDM630 L2 PowerFactor
      unit_of_measurement: '%'
      register: 32
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
    - name: SDM630 L3 PowerFactor
      unit_of_measurement: '%'
      register: 34
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
    # - name: L1 Phase Angle
    #   unit_of_measurement: °
    #   register: 36
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L2 Phase Angle
    #   unit_of_measurement: °
    #   register: 38
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L3 Phase Angle
    #   unit_of_measurement: °
    #   register: 40
    #   data_type: float
    #   precision: 2
    #   count: 2
    - name: SDM630 Average Voltage
      unit_of_measurement: V
      register: 42
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
    - name: SDM630 Average Current
      unit_of_measurement: A
      register: 46
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
    - name: SDM630 Sum of Current
      unit_of_measurement: A
      register: 48
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
    - name: SDM630 Total System Power
      unit_of_measurement: W
      register: 52
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
    # - name: Total System VA
    #   unit_of_measurement: VA
    #   register: 56
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: Total System VAr
    #   unit_of_measurement: VAr
    #   register: 60
    #   data_type: float
    #   precision: 2
    #   count: 2
    - name: SDM630 Total System Power Factor
      unit_of_measurement: '%'
      register: 62
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
    # - name: Total System Phase Angle
    #   unit_of_measurement: °
    #   register: 66
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: Supply Frequency
    #   unit_of_measurement: Hz
    #   register: 70
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: Import Watt Hours
    #   unit_of_measurement: kWh
    #   register: 72
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: Export Watt Hours
    #   unit_of_measurement: kWh
    #   register: 74
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: Import VArh
    #   unit_of_measurement: kVArh
    #   register: 76
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: Export VArh
    #   unit_of_measurement: kVArh
    #   register: 78
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: VAh since last reset
    #   unit_of_measurement: kVAh
    #   register: 80
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: Ah since last reset
    #   unit_of_measurement: Ah
    #   register: 82
    #   data_type: float
    #   precision: 2
    #   count: 2
    - name: SDM630 Total System Power Demand
      unit_of_measurement: W
      register: 84
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
    - name: SDM630 Max Total System Power Demand
      unit_of_measurement: W
      register: 86
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
    # - name: Total system VA demand
    #   unit_of_measurement: VA
    #   register: 100
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: Maximum total system VA demand
    #   unit_of_measurement: VA
    #   register: 102
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: Neutral Current Demand
    #   unit_of_measurement: A
    #   register: 104
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: Maximum Neutral Current Demand
    #   unit_of_measurement: A
    #   register: 106
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L1-L2 Voltage
    #   unit_of_measurement: V
    #   register: 200
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L2-L3 Voltage
    #   unit_of_measurement: V
    #   register: 202
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L3-L1 Voltage
    #   unit_of_measurement: V
    #   register: 204
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: Average L-L Voltage
    #   unit_of_measurement: V
    #   register: 206
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: Neutral Current
    #   unit_of_measurement: A
    #   register: 224
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L1-N Volts THD
    #   unit_of_measurement: '%'
    #   register: 234
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L2-N Volts THD
    #   unit_of_measurement: '%'
    #   register: 236
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L3-N Volts THD
    #   unit_of_measurement: '%'
    #   register: 238
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L1 Current THD
    #   unit_of_measurement: '%'
    #   register: 240
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L2 Current THD
    #   unit_of_measurement: '%'
    #   register: 242
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L3 Current THD
    #   unit_of_measurement: '%'
    #   register: 244
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: Average L-N Volts THD
    #   unit_of_measurement: '%'
    #   register: 248
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: Average Line Current THD
    #   unit_of_measurement: '%'
    #   register: 250
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: Total System Power Factor
    #   unit_of_measurement: °
    #   register: 254
    #   data_type: float
    #   precision: 2
    #   count: 2
    - name: SDM630 L1 Current Demand
      unit_of_measurement: A
      register: 258
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
    - name: SDM630 L2 Current Demand
      unit_of_measurement: A
      register: 260
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
    - name: SDM630 L3 Current Demand
      unit_of_measurement: A
      register: 262
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
    - name: SDM630 L1 Max Current demand
      unit_of_measurement: A
      register: 264
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
    - name: SDM630 L2 Max Current demand
      unit_of_measurement: A
      register: 266
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
    - name: SDM630 L3 Max Current demand
      unit_of_measurement: A
      register: 268
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
    # - name: L1-L2 Volts THD
    #   unit_of_measurement: '%'
    #   register: 334
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L2-L3 Volts THD
    #   unit_of_measurement: '%'
    #   register: 336
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L3-L1 Volts THD
    #   unit_of_measurement: '%'
    #   register: 338
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: Average L-N THD
    #   unit_of_measurement: '%'
    #   register: 340
    #   data_type: float
    #   precision: 2
    #   count: 2
    - name: SDM630 Total kWh
      unit_of_measurement: kWh
      register: 342
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
    # - name: Total kVArh
    #   unit_of_measurement: kVArh
    #   register: 344
    #   data_type: float
    #   precision: 2
    #   count: 2
    - name: SDM630 L1 Import kWh
      unit_of_measurement: kWh
      register: 346
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
    - name: SDM630 L2 Import kWh
      unit_of_measurement: kWh
      register: 348
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
    - name: SDM630 L3 Import kWh
      unit_of_measurement: kWh
      register: 350
      register_type: input
      data_type: float
      precision: 2
      count: 2
      slave: 1
    # - name: L1 Export kWh
    #   unit_of_measurement: kWh
    #   register: 352
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L2 Export kWh
    #   unit_of_measurement: kWh
    #   register: 354
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L3 Export kWh
    #   unit_of_measurement: kWh
    #   register: 356
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L1 Total kWh
    #   unit_of_measurement: kWh
    #   register: 358
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L2 Total kWh
    #   unit_of_measurement: kWh
    #   register: 360
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L3 Total kWh
    #   unit_of_measurement: kWh
    #   register: 362
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L1 Import kVArh
    #   unit_of_measurement: kVArh
    #   register: 364
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L2 Import kVArh
    #   unit_of_measurement: kVArh
    #   register: 366
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L3 Import kVArh
    #   unit_of_measurement: kVArh
    #   register: 368
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L1 Export kVArh
    #   unit_of_measurement: kVArh
    #   register: 370
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L2 Export kVArh
    #   unit_of_measurement: kVArh
    #   register: 372
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L3 Export kVArh
    #   unit_of_measurement: kVArh
    #   register: 374
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L1 Total kVArh
    #   unit_of_measurement: kVArh
    #   register: 376
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L2 Total kVArh
    #   unit_of_measurement: kVArh
    #   register: 378
    #   data_type: float
    #   precision: 2
    #   count: 2
    # - name: L3 Total kVArh
    #   unit_of_measurement: kVArh
    #   register: 380
    #   data_type: float
    #   precision: 2
    #   count: 2

My config is no compatible with new HA and i want change it… pleasde anybody can help me what i must change ?
Thanks