Script editor doesn't process delay times

I have in my scripts delay commands (edited in YAML mode):

- delay:
    milliseconds: 150

if I change back to GUI mode, the command looks like this:
Screenshot 2020-11-30 152529

This is also written to the scripts.yaml nad the script doesn’t work!

Has anybody similar experiences? Any hints?

You can’t use the complex object structure in the UI. Only in yaml. It has no bearing on whether it will work or not either.

150 ms is almost impossible to detect. Are you sure it’s not working?

EDIT: It seems when you change it to UI it doesn’t fire anymore. That would be a bug. So keep it as yaml and it will work fine.

I can see, that it doesn’t work, because it creates an error message

Logger: homeassistant.components.script.presence_signal_einfahrt
Source: helpers/script.py:1122
Integration: Skript ([documentation](https://www.home-assistant.io/integrations/script), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+script%22))
First occurred: 18:18:27 (3 occurrences)
Last logged: 18:18:31

Objekterkennung Einfahrt signalisieren: Repeat at step 1: Error rendering Objekterkennung Einfahrt signalisieren: Repeat at step 1 delay template: offset [object Object] should be format 'HH:MM', 'HH:MM:SS' or 'HH:MM:SS.F'

I don’t trust the script editor anymore - I will edit the scripts directly in the file

I’m guessing you ddin’t see my edit?

for what it’s worth, it’s working fine for me using the UI.