Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script field selectors not disabled when viewing read-only YAML Scripts through UI #22976

Open
3 of 4 tasks
SeanPM5 opened this issue Nov 24, 2024 · 0 comments
Open
3 of 4 tasks

Comments

@SeanPM5
Copy link
Contributor

SeanPM5 commented Nov 24, 2024

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.
  • I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

Describe the issue you are experiencing

Have scripts in YAML with fields and while it displays the correct message on top about it being read-only and not editable, the controls are not disabled like they should be. You can toggle the booleans, use the dropdown to change to a different selector, etc. And then it has the "Save Script" FAB at the bottom even though you cannot save it.

Included script below to reproduce

Screen Shot 2024-11-24 at 12 03 59 AM

Describe the behavior you expected

Should be disabled state like the rest of the user interface elements

Steps to reproduce the issue

Script to reproduce:

alias: Announce Downstairs
description: Send an announcement downstairs
icon: mdi:bullhorn
mode: queued
fields:
  message:
    selector:
      text:
        multiline: true
    name: Message
    description: The message to broadcast
    required: true
sequence:
  - alias: Audible notification
    continue_on_error: true
    action: notify.alexa_media
    data:
      data:
        type: tts
      target:
        - media_player.living_room_echo
      message: "{{ message }}"
  1. Copy above script into a YAML file, then reload scripts and view script through UI
  2. Note how message says This script cannot be edited from the UI but still allows interacting with UI elements

What version of Home Assistant Core has the issue?

2024.11.3

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

No response

Which operating system are you using to run this browser?

No response

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant