feature request: make yaml specification an arary to allow multiple repeated sections #3474
Replies: 1 comment
-
|
Hello, this can be closed. This is already implemented exactly with packages: keyword. Just: Thank you and sorry for the noise. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe your core improvement
Hello. I'd would like to not have to group things in esphome yaml files configuration depending on the type, but just be able to define multiple sensor: sections or any sections anywhere in the file.
I propose two syntaxes to achieve the goal. My idea can be implemented by making the root of esphome configuration an array:
Alternatively multiple yaml documents can be used within one yaml file:
The behavior of arrays or documents would be just the same as if each entry would be a separate file included with
packages:keyword.Current limitations
Currently, I have to group all sensor: binary_sensor: esphome: etc. in one key, as YAML dictionary rightfully allows one unique key per document.
Technical benefits
The idea is to allow me to group things in esphome depending on their related functionality in one single file, not have to group them by the esphome type. I can currently group in multiple files and use packages, which I do, I believe being able to do that in one document would be a nice addition.
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions