Is there a reason to not support the entire YAML specification? From the docs:
The use of flow style should be avoided. While simple, short and clean, with longer data in it, it becomes harder to read.
Then in the next section:
Mappings can be written in different styles, however, we only allow the use of block style mappings. Flow style (that looks like JSON) is not allowed.
I have my reasons for single line YAML, and whether or not a developer doesn’t like my reasons should not be a factor. I find it strange that this capability would be singled out as not allowed. Was it a technical requirement?
As I understand it, the docs you linked are talking about examples provided in documentation… hence the link in the reference to general “documentation standards”. As you will see in even a cursory perusal of these forums, the convention here is also to use block style.
None of that should not be taken to mean that flow style does not work in HA configuration.
File 'automations.yaml' could not be parsed, it was referenced from path 'automations.yaml'.This file will be ignored. Error(s):
- YAMLSemanticError: Indicator : missing in flow map entry
- YAMLSemanticError: Indicator : missing in flow map entry
As of now, I am a newb at HA. I want to move my buildings over to HA from OpenHab. Multiline editing is an absolute requirement at this time, because I don’t know what I’m getting myself into until I start going down the path.
I’m going down the path now.
In the future, I will certainly adopt better practices as I discover them. I sort all of my room names, HVAC zones, sensors and such according to a logical order not necessarily alphabetical. Wherever I need to add a new feature, I will take that chunk of multiline list of and drop it into my new stanza of configuration. I can deploy a new calendar parameter to 1000 rooms in less than a minute using this method. I know I can do that in OH, but I am not as certain with HA without multiline editing.
So, I have many HVAC zones, and they have names like HVACZone_xxxx, where xxxx is like OCMR, office complex main room hvac zone. I have 11 zones in the office complex. I’ll copy 11 lines of zones only when I tie some feature to the zones.
I actually find it much easier to spot errors in my code this way; they are easier to spot at least for me.