DEPRECATED service template

Anyone know why I get a comment as: "String does not match the pattern of “DEPRECATED” on row:

          service_template: switch.turn_'{{ "off" if brightness == 0 else "on" }}'

In the below light template:

  - platform: template
    lights:
      switch_6:
        friendly_name: 'bedroomlamp'
        value_template: '{{ states.switch.bedroomlamp.state }}'
        turn_on:
          service: switch.turn_on
          entity_id: switch.bedroomlamp
        turn_off:
          service: switch.turn_off
          entity_id: switch.bedroomlamp
        set_level:
          service_template: switch.turn_'{{ "off" if brightness == 0 else "on" }}'
          entity_id: switch.bedroomlamp
        icon_template: mdi:lamp

Since v0.115 you no longer have to use service_template: you can (and should) just use service:

Same for data_template: it’s just data: now.

ok, thanks.