All MQTT sensors/switches are lost after migrating them to the new integration

Dear All,
I have had several tens of MQTT sensors/switches/etc working correctly for years now. They were all created manually in yaml files over the years and were referenced in configuration.xml like this:

mqtt: !include_dir_merge_list entities/sensors

A specific sensor would look like this (in several files, all under entities/sensors):

- platform: mqtt
  state_topic: "/thermometers/28:FF:0E:C8:54:15:03:DB"
  name: "Balcony temperature"
  unit_of_measurement: "°C"

In the current update I got a warning in the logs that this format is deprecated and will be retired in December, so I thought I’d update them to the latest and greatest format.
Now my sensors look like this:

sensor:
  - state_topic: "/thermometers/28:FF:0E:C8:54:15:03:DB"
    name: "Balcony temperature"
    unit_of_measurement: "°C"

I also updated my configuration.yaml like this:

mqtt: !include_dir_merge_list integrations/mqtt

The config passes validation but when restarted all these modified sensors are missing. Logs are clean, and the sensors are really missing :slight_smile: : In Developer tools - States I can’t find them either.

Anyone has any idea what might be the problem?

I’d appreciate any pointers in the right direction!

https://community.home-assistant.io/t/from-old-mqtt-config-to-new-config/458774/2?u=tom_l