String doesnt match the patern of "DEPRECATED^"

Hi. Im seeing “String doesnt patch the patern of DEPRECATED” error in VSCode with this trigger:

    action:
      - service_template: >
          {% if (is_state('light.kitchen', 'on') or is_state('light.kitchen_spotlights', 'on')) and state_attr('sun.sun', 'elevation') < 0 %}
            light.turn_on
          {% else %}
            light.turn_off
          {% endif %}
        entity_id:
          - light.kitchen_cabinets
          - light.kitchen_counter

have i missed any breaking changes?

Change service_template to service.

Your yaml looks fine to me apart from the “_template” as Marc pointed out.
Though I agree the warning could be a bit better worded.
However, as the syntax changes the checks have to change and the warnings accordingly.
It is by definition a moving target
Fingers crossed, it will improve in time

Thanks for the reply. So the templates will be evaluated with just services: ? What about data, is it similar and we dont need to use data_template anymore?

Implementation is progressing but haphazard.
Squeeze everything through config check and see if it complains.
(the config check built into HA is an order better)
Fix issues as they arrise