After updating my Home Assistant core, the old mqtt syntax will be deprecated, so i need to move to the new one.
My old config was in this configuration:
switch:
- platform: mqtt
state_topic: 'bla bla bla'
light:
- platform: mqtt
state_topic: 'bla bla bla'
sensor: !include sensors.yaml
Here on a different file (sensors.yaml)
#Here is directly, no need to put "sensors: at the top" (this line is not readed)
- platform: mqtt
state_topic: 'bla bla bla'
On my case i have a lot of sensors with mqtt, wich i dont want to add it on my config.yaml, otherwise i will create a very large file.
On my case i have updated the swtches and lights on this way
mqtt:
switch:
- name: "bla bla bla"
state_topic: "bla bla bla"
light:
- name: "bla bla bla"
state_topic: "bla bla bla"
#And here is my issue, how i include the sensors.yaml file under that chain
Hope you guys could help me, thanks in advance