You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have updated to the latest available Home Assistant version: 0.107.0dev20200222
I have cleared the cache of my browser.
I have tried a different browser to see if it is related to my browser: Chrome and Edge.
The problem
I use automations for the Xiaomi Magic Cube, with a condition that uses a value_template. When I use the Automation Editor in the Frontend and save the automation, the value_template get corrupted. From this:
So it will also break off any lines longer than about 80 characters. Even worse, it corrupts all the automations in my yaml file.
Expected behavior
The Automation Editor should be aware of value_templates and the '>' sign and not add the extra lines at the end, and also not split up lines longer than about 80 characters.
Steps to reproduce
Add the first automation in the problem description to your automation.yaml file
From Server Controls, choose RELOAD AUTOMATIONS
Edit an automation using the Automation Editor and be sure to change something and save it
(just add an 'a' somewhere and delete it)
Reopen your automation.yaml file
Environment
Home Assistant release with the issue: tested 0.103.6 and 0.107.0
Last working Home Assistant release (if known): unknown
UI Type (States or Lovelace): Lovelace
Browser and browser version: Chrome 79 and Edge 42
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Checklist
The problem
I use automations for the Xiaomi Magic Cube, with a condition that uses a value_template. When I use the Automation Editor in the Frontend and save the automation, the value_template get corrupted. From this:
To this:
If the value_template contains multiple, longer lines (e.g. flip90) it goes from this:
to this:
So it will also break off any lines longer than about 80 characters. Even worse, it corrupts all the automations in my yaml file.
Expected behavior
The Automation Editor should be aware of value_templates and the '>' sign and not add the extra lines at the end, and also not split up lines longer than about 80 characters.
Steps to reproduce
(just add an 'a' somewhere and delete it)
Environment
Problem-relevant configuration
Javascript errors shown in your browser console/inspector
Additional information
Xiaomi Magic Cube gesture 7 is clockwise rotation (8 is counter clockwise).
The text was updated successfully, but these errors were encountered: