Why did this automation turn off my pool pump?

I have a very simple automation setup to turn on my pool pump at 11am and turn it back off at 7pm. I used this same automation last year, and just re-enabled it this week since we’ve just taken the winter cover off the pool.

alias: Pool Pump
description: Turn on pump at 11am, off at 7pm.
trigger:
  - platform: time
    at: "11:00:00"
    id: pump_on
  - platform: time
    at: "19:00:00"
    id: pump_off
condition: []
action:
  - if:
      - condition: trigger
        id: pump_on
    then:
      - service: switch.turn_on
        data: {}
        target:
          entity_id: switch.pool_pump
  - if:
      - condition: trigger
        id: pump_off
    then:
      - service: switch.turn_off
        data: {}
        target:
          entity_id: switch.pool_pump
mode: single

I just went outside and noticed my pool pump was off so I manually turned it on. I found that strange. Checking the entity history it shows turned on at 11:00:01 and turned off at 11:00:02

Trace Step Details on the automation shows the pump turning on and says the turn off command was not run (as it shouldn’t have been run)

But if I go into Trace Timeline and Related Log Book Entities they both show the turn off command executed.


What the heck happened?