Why extra " quotes being added to my service call entity_id?

Hi all,

I am playing with a small script that turns off the light… The script does not work and the error I get is that " can’t find switch/turn_off . But I think the issue is that somehow I get extra “” added around the entity_id .
Any idea why they are being added>

Code :

 sequence:
   - service: homeassistant.turn_on
     data_template:
       entity_id: >
         {{ light_id }}



  - service: homeassistant.turn_off
     data_template:
       entity_id: >

        {%- macro what_light(light_id) -%}
        {%- if ("switch.bedroom_ceiling_light_switch" not in light_id ) -%}
          switch.bedroom_ceiling_light_switch
        {%- endif -%}
        {%- endmacro -%}
        "{{what_light(light_id)}}"

Log entry of WORKING call: (observe the difference in quotes )
this: [‘light.living_room_ceiling_light_2_level’]

ep 28 22:32:54 HomeControl hass[32337]: 2017-09-28 22:32:54 INFO (MainThread) [homeassistant.helpers.script] Script Follow Me Lights script: Executing step call service
Sep 28 22:32:54 HomeControl hass[32337]: 2017-09-28 22:32:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service_data=entity_id=light.living_room_ceiling_light_2_level, domain=homeassistant, service=turn_on, service_call_id=1972928688-181>
Sep 28 22:32:54 HomeControl hass[32337]: 2017-09-28 22:32:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service_data=entity_id=['light.living_room_ceiling_light_2_level'], domain=light, service=turn_on, service_call_id=1972928688-182>

Log entry of NOT working call:
vs this: entity_id=[’“switch.bedroom_ceiling_light_switch”’]

Sep 28 22:32:54 HomeControl hass[32337]: 2017-09-28 22:32:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service_data=entity_id=['"switch.bedroom_ceiling_light_switch"'], domain="switch, service=turn_off, service_call_id=1972928688-184>
Sep 28 22:32:54 HomeControl hass[32337]: 2017-09-28 22:32:54 WARNING (MainThread) [homeassistant.core] Unable to find service "switch/turn_off

S