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
0.114 Beta - Script and Automation Editors - Entire Choose section switches to YAML mode when typing data for service call #6577
Comments
I get this in all actions, not limited to choose. An example is a Call service action with light.turn_on. |
Yes, it is similar in other actions but with those it is only the individual action which changes to YAML mode. With Choose, typing service data in any of of the nested actions within the Choose causes the whole Choose section to switch to YAML mode (not just the individual action). For example, I have an automation with a Choose which has 4 options each with a condition and an action. Typing service data for any of those caused the whole Choose section to turn to YAML mode and not just the individual action. The only workaround is to switch that action to YAML mode before entering the service data - you can manually switch an individual action to YAML mode, it's just that the error doesn't do this. |
I have the same in 0.114.3 (in 0.113.3 it works OK) |
I came here to make sure this issue has been reported, and also I can confirm a second work-around exists, for those who might prefer it: If you're trying to type Apparently this issue isn't triggered if you use JSON instead of trying to type YAML. And as soon as you save this JSON, it'll reformat it back to YAML, too. |
This really helps, I don't leave the curly brackets in but instead I write |
This is fixed in 0.115 |
Checklist
The problem
When adding service data to a Call service which has no data, the entire Choose section switches to YAML mode as soon as the first letter of the option name is typed:
Expected behavior
Only the action should switch to YAML mode, looking similar to the mockup below:
Steps to reproduce
brightness_pct: 20
to the service data for the light.turn_on call.The value of "data" is not supported by the UI editor, we support "Object" but received ""b"".You can still edit your config in yaml.
Environment
State of relevant entities
Problem-relevant configuration
Javascript errors shown in your browser console/inspector
Additional information
The text was updated successfully, but these errors were encountered: