It would be nice, if this just updates automatically with some HA update.
I’m actually a bit tired of changing things manually every time, when someone decide to change things, which worked fine…
669 lines of code to check only in scripts.yaml, I so have no time for this…
I believe you don’t have to change anything if you don’t want to. My understanding is that the legacy syntax will continue to work, and there are no plans to remove it.
This can only be done after updating to the October release.
So in short do not change service: to action: just yet. Wait until you can change action: to actions: after updating to the October release. Only then it is safe (easy) to update service:.
I’m personally not changing anything. Everything is backward compatible. If it ain’t broke, don’t fix it. New automations will get these changes, that’s it.
oh well, the vscode warnings are often wrong anyways. IIRC they only work well if you have a basic automation. Anything remotely advanced and it’s red squigglies everywhere.
As the originator of this thread, I absolutely get where @Sir_Goodenough is coming from, but am also mindful of what the moderators are saying.
I have some quite complex, “non-basic” automations and scripts etc and very seldom have red squigglies unless syntax or indentation is wrong. The “if it’s not broken don’t fix it” approach is generally the best but the OCDness of lots of “deprecation” messages will annoy quite a lot of people.
As a 2 year user of HA I bow to the greater knowledge and experience of long time users. After all, isn’t that one of the benefits of this community.
I looked yesterday, they edited the extension so that either syntax is accepted, and not listed as deprecated. I converted mine anyway, will have a YE video about it out Sunday morning my time.
Replace the word action: with actions: first. Then replace service: with action:
If you don’t do it in this order it becomes difficult to distinguish the changes required
I wish I looked here sooner. Unfortunately I didn’t realize and now I have new automations mixed in, so I can’t seem to figure out how to properly find/replace the raw yaml file. I suppose I will need to live with the red squiggles since I’m not editing automations.yaml by hand anyhow.
Wondering if someone could suggest what is wrong here, I have fixed all of my templated accept this one. Studio Code flagged that Platform needed to replaced by trigger, so away I went, however now I get errors in the log.
A sample of the error is:
Logger: homeassistant.config
Source: config.py:592
First occurred: 12:34:55 PM (10 occurrences)
Last logged: 1:37:22 PM
Invalid config for ‘template’ at template.yaml, line 504: required key ‘platform’ not provided
Invalid config for ‘template’ at template.yaml, line 515: required key ‘platform’ not provided
The template is: