[Solved] What's wrong with my script?

I don’t really know my way around scripts yet, so I don’t really know what the problem with it is.

script:
Turn_on_pc:
  sequence:
    - service: notify.phones
      data:
         message: PC tændt
    - delay:
        seconds: 5
    - service: switch.turn_off
      entity_id: switch.pc
      - delay:
          seconds: 30
    - service: switch.turn_on
      entity_id: switch.pc

This is what my log says

Failed config
  script: 
    Turn_on_pc: [source /config/configuration.yaml:307]
      sequence: [source /config/configuration.yaml:308]
        - data: [source /config/configuration.yaml:310]
            message: PC tændt
          service: notify.phones
        - delay: [source /config/configuration.yaml:312]
            seconds: 5
        - entity_id: switch.pc
          service: switch.turn_off
        - delay: [source /config/configuration.yaml:316]
            seconds: 30
        - entity_id: switch.pc
          service: switch.turn_on
  General Errors: 
    - Setup failed for script: Invalid config.
Successful config (partial)
  script:

check this part

image

Fixed that part, but I still can’t get it to work.

This is what I’m getting now

2018-02-13 19:34:03 ERROR (MainThread) [homeassistant.config] Invalid config for [script]: [Turn_on_pc] is an invalid option for [script]. Check: script->script->Turn_on_pc. (See /config/configuration.yaml, line 305). Please check the docs at https://home-assistant.io/components/script/
2018-02-13 19:34:03 ERROR (MainThread) [homeassistant.setup] Setup failed for script: Invalid config.

Failed config
  script: 
    Turn_on_pc: [source /config/configuration.yaml:306]
      sequence: [source /config/configuration.yaml:307]
        - data: [source /config/configuration.yaml:309]
            message: PC tændt
          service: notify.phones
        - delay: [source /config/configuration.yaml:311]
            seconds: 5
        - entity_id: switch.pc
          service: switch.turn_off
        - delay: [source /config/configuration.yaml:315]
            seconds: 30
        - entity_id: switch.pc
          service: switch.turn_on
  General Errors: 
    - Setup failed for script: Invalid config.
Successful config (partial)
  script:

Got it working, it didn’t like the name, changed it to just pc and now it works.