Modbus sensor custom data_type stopped working with release 2021.8.x

Hi,

I’ve been using a modbus component in my HA integrations for years and I set up loads of sensors using custom data_type to read more than one holding register in one shot to optimize bus performancie.
All of the sudden, after update to latest release 2021.8.5 all my multiple register sensors stopped working, more over, they are not even showing up in HA entities list at all. I tried to change data_type parameter from custom to string but was not lucky as well.
My sensor config is as follows and it worked like a charm in 2021.6.4 release before last upgrade. I also noted that the code of sensor.py was completely redesigned on GitHub so I guess something went wrong there.

- platform: modbus
    scan_interval: 5
    registers:
    - name: basement_floor_heating_sensor
      hub: hub3
      slave: 1
      register_type: holding
      register: 0
      count: 52
      data_type: string
      structure: ">52h"
    - name: ground_floor_heating_sensor
      hub: hub3
      slave: 2
      register_type: holding
      register: 0
      count: 52
      data_type: custom
      structure: ">52h"
    - name: first_floor_heating_sensor
      hub: hub3
      slave: 3
      register_type: holding
      register: 0
      count: 52
      data_type: custom
      structure: ">52h" 

I learned that there is a new modbus configuration style and I reorganized my configuration.yaml like below and all worked back fine.

modbus:  
  - name: hub3
    type: serial
    method: rtu
    port: /dev/ttyUSB1
    baudrate: 4800
    stopbits: 1
    bytesize: 8
    parity: N
    sensors:
    - name: basement_floor_heating_sensor
      scan_interval: 5
      slave: 1
      address: 0
      input_type: holding
      count: 52
      data_type: custom
      structure: ">52h"
    - name: ground_floor_heating_sensor
      scan_interval: 5
      slave: 2
      address: 0
      input_type: holding
      count: 52
      data_type: custom
      structure: ">52h"
    - name: first_floor_heating_sensor
      scan_interval: 5
      slave: 3
      address: 0
      input_type: holding
      count: 52
      data_type: custom
      structure: ">52h"