Think I’m getting old here :-)… this is why homeassistant is still not for the bigger audience… too much nitty changes every update… the list of “breaking changes” is bigger than “new features” (joke).
Breaking Changes typically are new features. They’re listed separately because the change they introduce alters (breaks) the existing way of doing something. You are obliged to modify your existing configuration to conform with the changes.
In contrast, a non-Breaking Change is a new feature that doesn’t typically require modifying your existing configuration.
For more information about this particular Breaking Change:
thank you for your anser but this change doesn’t work . Maybe becouse I have a separate sensor.yaml
and sensor: !include sensor.yaml in configuration.yaml
Move the darksky sensor (and others) to sensor.yaml where all of your sensors are defined.
The only sensors that are defined separately are MQTT and Template (for modern style Template Sensors; legacy style continue to be defined under the sensor: domain).
thank you for your answer.
So I should move all mqtt and template sensor in configuration yaml under
MQTT: and Template : is it correct?
Can I have on separate file using !include comand?
Something like
For template:, be aware that both the syntax and the functionality have changed with the new configuration format, it’s not just a matter of moving the sensor configurations over
Are you able to tell me if there is a source where I can understand how I have to change my sintax?
I made a template.yaml as follows and the configuration is valid but if I restart HA I receive an error. I am surely missing something. Is there an example I can follow?
Invalid config for [template]: [template] is an invalid option for [template]. Check: template->template. (See /config/template.yaml, line 1).
It’s in the documentation for the Template integration. However, you are not obligated to convert your existing Template Sensors, which are defined in what is now known as ‘legacy format’, into the new “modern format”. Just leave them in sensors.yaml.
then the first line in sensors.yaml should not contain sensor: key word (or mqtt: for mqtt.yaml or template: for templates.yaml). If you do include the key word on the first line, you are effectively duplicating it and it will fail Configuration Check.
EDIT
Correction. Replaced colon with period in file name.
thank you for your reply, I was just trying to update all the configurations while I was fixing the MQTT stuff.
Maybe I’ll try to update the “template question” in the future for now I fixed the MQTT config for the incoming 2022.9