I actually tried it before i came here asking but i added 'data: ’ inside the data box of the automation editor. This resulted in having data: twice and it wouldn’t work.
I saw the mistake once i went to automations.yaml to paste my code here and corrected it.
templates are not supported but we are talking about passing data to a script, and there is no templates in the data, right? TS points out that data is just not passed to the script.
Not in this case (or in the example from the other day where someone was incorrectly passing templates instead of results). I was just trying to justify why it had possibly been coded that way.