Alarm delayed arming not working after the update

I had this little automation which was working fine prior to the last update, however it simply doesn’t work anymore:

  alias: Alarm - Delayed start
  description: ''
  trigger:
  - platform: state
    entity_id: input_boolean.alarm_delayed_arming
    to: 'on'
  condition:
  - condition: and
    conditions:
    - condition: state
      entity_id: input_boolean.alarm_on_off
      state: 'off'
  action:
  - service: input_boolean.turn_off
    data: {}
    entity_id: input_boolean.alarm_delayed_arming
  - service: notify.gmail
    data:
      title: Alarm will be on in 5 minutes
      message: The alarm will be on in 5 minutes
  - delay: '60'
  - service: input_boolean.turn_on
    data: {}
    entity_id: input_boolean.alarm_on_off
  - service: notify.gmail
    data:
      title: Alarm is now on
      message: The alarm has been automatically turned on
  mode: restart

Any hints where am I missing something here?