HA updatedto latest - Broke the rest sensor

Hello
After updating to the latest HA, I found my restful sensors broken.
Check config shows -
Package sensors setup failed. Component rest cannot be merged. Expected a dict.
(sensors is my sensors.yaml file which is referenced in configuration.yaml)

I use the following scrape-

rest:
  - authentication: basic
    username: "xx"
    password: "xx"
    scan_interval: 10
    timeout: 90
    resource: http://192.168.39.14/app/config/0/0
    sensor:
      - name: "hvac_0"
        value_template: 'OK'
        json_attributes:
          - "Result"
template:
  - sensor:
#      - name: "ctr_type"
#        state: "{{ state_attr('sensor.hvac_0','Result')['Point'][0]['Value'] }}"
      - name: "runstate"
        state: "{{ state_attr('sensor.hvac_0','Result')['Point'][1]['Value'] }}"
#      - name: "CHIL_S_S"
#        state: "{{ state_attr('sensor.hvac_0','Result')['Point'][2]['Value'] }}"
#      - name: "CHIL_OCC"
#        state: "{{ state_attr('sensor.hvac_0','Result')['Point'][3]['Value'] }}"
#      - name: "min_left"
#        state: "{{ state_attr('sensor.hvac_0','Result')['Point'][4]['Value'] }}"
      - name: "ALM"
        state: "{{ state_attr('sensor.hvac_0','Result')['Point'][7]['Value'] }}"
      - name: "CAP_T"
        unit_of_measurement: "%"
        state: "{{ state_attr('sensor.hvac_0','Result')['Point'][13]['Value']|float|round(0) }}"
      - name: "SP"
        unit_of_measurement: "°C"
        state: "{{ state_attr('sensor.hvac_0','Result')['Point'][17]['Value']|float|round(1) }}"
      - name: "CTRL_PNT"
        unit_of_measurement: "°C"
        state: "{{ state_attr('sensor.hvac_0','Result')['Point'][18]['Value']|float|round(1) }}"
      - name: "CTRL_WT"
        unit_of_measurement: "°C"
        state: "{{ state_attr('sensor.hvac_0','Result')['Point'][19]['Value']|float|round(1) }}"
      - name: "OAT"
        unit_of_measurement: "°C"
        state: "{{ state_attr('sensor.hvac_0','Result')['Point'][20]['Value']|float|round(1) }}"

What has changed in the latest HA which has broken the above (Was working since last few months)

Please help. I am unable to solve.

Answering to myself - calling restful as a separate file (ie, include directory in my case) is throwing up error as listed above.

Cutting and pasting the rest: part to configuration.yaml removed the errors.

Developers - Can you please check whats broken…

Yeah - I caught this one too. Very strange error. As you say, moving rest config into configuration.yaml fixed it.