The 'entity_id' option is deprecated - template.switch

I need some help with this error message. In the Log I get a warning about the entity_id option is deprecated and it points to the template.switch.

WARNING (MainThread) [homeassistant.components.template.switch] The 'entity_id' option is deprecated, please remove it from your configuration

I have four switch templates which are more or less identical. The switches are made so that they can work with the generic thermostat to control my floor heating. The switch is using a input_boolean to hold the switch status. So I suspect this is what the warning is about, but I am not sure as I can’t see anything wrong with it.

Does anyone has some idea of what I can do?
I am running on 0.118.3

The switch template looks like this;

  - platform: template
    switches:
      microtemp_switch_peis:
        friendly_name: "Microtemp switch peis på/av"
        value_template: "{{ is_state('input_boolean.microtemp_peis_on_off', 'on') }}"
        turn_on:
          - service: input_boolean.turn_on
            data:
              entity_id: input_boolean.microtemp_peis_on_off
          - delay: '00:00:05'   
          - service: script.turn_on
            data:
              entity_id: script.microtemp_peis_on
          - service: timer.start
            entity_id: timer.microtemp_update 
        turn_off:
          - service: input_boolean.turn_off
            data:
              entity_id: input_boolean.microtemp_peis_on_off
          - delay: '00:00:05'    
          - service: script.turn_on
            data:
              entity_id: script.microtemp_peis_off
          - service: timer.start
            entity_id: timer.microtemp_update 
        icon_template: >-
          {% if is_state('input_boolean.microtemp_peis_on_off', 'on') %}
            mdi:radiator
          {% else %}
            mdi:radiator-off
          {% endif %}

might not take out the error, but can leave out all data: filed and do this:

          - service: script.turn_on
            entity_id: script.microtemp_peis_on

for all services. (you dont pass along any other data, so the entity_id is enough

in fact, unless you need this specific requirement for the scripts, to not wait for the script to finish correctly or not, you could also use:

          - service: script.microtemp_peis_off

in stead of:

          - service: script.turn_on
            data:
              entity_id: script.microtemp_peis_off

the entity_id error would be generated in a template sensor, with a now deprecated entity_id: field. Did you check your template sensors for that?

It might be because you have defined entity_ids to watch in your template sensors. Nothing to do with your switches.

Thank you both for your feedback.

All the template sensor have been washed for the entity_id, so I should have none left.
For thisone, it looks like I just have to live with that error message for the time being.