Automating a bulb to flash

I am playing around with automation in HA and trying to make a bulb flash. It toggles once, buts stops after one count. What am I missing?

alias: Bulb blink automation
description: ''
trigger:
  - platform: device
    type: turned_on
    device_id: 886ffaf867a0af9f333acf8d19bbcaaf
    entity_id: light.tp_link_smart_bulb_ed93
    domain: light
condition:
  - condition: device
    type: is_on
    device_id: 886ffaf867a0af9f333acf8d19bbcaaf
    entity_id: light.tp_link_smart_bulb_ed93
    domain: light
    for:
      hours: 0
      minutes: 0
      seconds: 1
action:
  - repeat:
      count: '10'
      sequence:
        - service: light.toggle
          data:
            transition: 1
          target:
            device_id: a0e63a465befc53561a4b55606fed63c
mode: single

Yaml please.

Thanks - just did

Thanks. What does your trace show?

Deleted- my reply would only confuse the original question.

@stevemann this is not an esphome issue…

I had a play, and the only way it would work (and it does work) is to put in a delay

action:
  - repeat:
      count: '10'
      sequence:
        - delay: 1
        - service: light.toggle
          data:
            transition: 1
          target:
            device_id: a0e63a465befc53561a4b55606fed63c

Thank you! It looks like the loop is working just that it was too fast to see the toggle. The delay increases the visible time.