home-assistant / frontend

:lollipop: Frontend for Home Assistant
https://demo.home-assistant.io
Other
3.78k stars 2.57k forks source link

Automation UI creates invalid yaml #20674

Open HenryLoenwind opened 1 month ago

HenryLoenwind commented 1 month ago

Checklist

Describe the issue you are experiencing

image

Duration isn't supported, yet the UI offers it and creates an invalid yaml when you enter a value.

Describe the behavior you expected

No error message -- OR -- UI should not offer invalid fields.

Steps to reproduce the issue

  1. Create an automation as in the picture
  2. Press "save"
  3. ?
  4. Profit ...um... fail

What version of Home Assistant Core has the issue?

2024.4.4

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

125.0.6422.4

Which operating system are you using to run this browser?

Windows 10

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

Resetting the duration to 0 does NOT generate valid yaml.

karwosts commented 1 month ago

This is actually a core bug, not frontend, but I've put up a PR there to fix it.