-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
Reusing YAML anchor results in configuration error #55378
Comments
config documentation |
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration ( |
We use YAML 1.1 |
@balloob per the YAML 1.1 spec, "anchors need not be unique" https://yaml.org/spec/1.1/#id863390. Do you need me to open another issue, or will you reopen this one? |
In that case it is an upstream issue in the YAML parser |
In case it helps anyone else, this pyyaml PR fixes the issue: yaml/pyyaml#394. Hopefully they'll merge it. |
The problem
Per the YAML 1.2 spec, "anchors need not be unique" https://yaml.org/spec/1.2/#id2765878
However, the attached section in my configuration.yaml file reuses the
turn_on
anchor, and results in the following error when runningha core check
:I can work around this issue by giving the anchors unique names, eg.
turn_on1
,turn_on2
, etc, but it seems like it should just work.What is version of Home Assistant Core has the issue?
core-2021.8.8
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
No response
Link to integration documentation on our website
No response
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: