I’m making macro yaml to create template annoucement for my script which store in script.yaml
Here are example of it
- service: script.play_audio
data:
message: !include speech/notice.yaml
The macro and script work well. But the problem is that:
When I edit script via in via UI and then reopen and edit it in Vscode or File Editor. This script will extract all code string into message ( which replace !include speech/notice.yaml ) so that this code is so long and have unformat string ( \n …) so that difficult to read and edit.
Anyone have suitabe and usefull way so that make it work better. Thanks