Skip to content
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

File editor error with ESPHome secrets: "cannot merge mappings; the provided source object is unacceptable" #248

Open
7wells opened this issue Oct 1, 2024 · 4 comments

Comments

@7wells
Copy link

7wells commented Oct 1, 2024

Describe the issue you are experiencing

The problem

Hello!

I enter in file /homeassistant/esphome/secrets.yaml the following (and only) line:

<<: !include ../secrets.yaml

The File editor then complains with a red exclamation mark symbol and the following error:

cannot merge mappings; the provided source object is unacceptable (1:29)

 1 | <<: .include ../secrets.yaml
---------------------------------^

Nevertheless, an ESPHome node correctly gets the secrets from one level above, i.e. from /homeassistant/secrets.yaml.

Please note:
I've entered: <<: !include ../secrets.yaml
FE complains: <<: .include ../secrets.yaml

Is the File editor misinterpreting the trailing exclamation mark (!) as a period (.)?

What type of installation are you running?

Home Assistant OS

Which operating system are you running on?

Home Assistant Operating System

Which add-on are you reporting an issue with?

File editor

What is the version of the add-on?

5.8.0

Steps to reproduce the issue

  1. Enter in file /homeassistant/secrets.yaml the following line (example):
    wifi_password: "blablabla"

  2. Enter in file /homeassistant/esphome/secrets.yaml the following (and only) line:
    <<: !include ../secrets.yaml

  3. Observe the File editor error message:

cannot merge mappings; the provided source object is unacceptable (1:29)

 1 | <<: .include ../secrets.yaml
---------------------------------^

System Health information

No response

Anything in the Supervisor logs that might be useful for us?

No response

Anything in the add-on logs that might be useful for us?

No response

Additional information

No response

@7wells
Copy link
Author

7wells commented Oct 4, 2024

@danielperna84
Please let me know if something is unclear or missing in my report. Thank you so much! ❤️

@danielperna84
Copy link
Owner

Due to private commitments I'm not able to work on this project. Somebody else has to contribute a fix, which I could then merge into the code.

@7wells
Copy link
Author

7wells commented Oct 4, 2024

@frenck
I'm sorry to ask, but do you know somebody who could look into this? I'm no programmer but am willing to test or help in other ways, if deemed beneficial.

@frenck
Copy link

frenck commented Oct 4, 2024

Sorry, can't help with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants