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" #3779

Closed
7wells opened this issue Sep 30, 2024 · 3 comments

Comments

@7wells
Copy link

7wells commented Sep 30, 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.

Is this problem related to the File editor addon or rather to ESPHome? For the latter case, I have opened an issue there: esphome/issues#6288

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 1, 2024

PS:

Please observe that I entered <<: !include ../secrets.yaml
However, the File editor complains about <<: .include ../secrets.yaml

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

@frenck
Copy link
Member

frenck commented Oct 1, 2024

Oh hi there @7wells 👋

Add-ons wrap existing software, in this case, hass-configurator is used in this add-on.
Thes specific issue you report is an issue with hass-configurator and not directly with the add-on itself.

Therefore, please report this issue with the hass-configurator project. Once they have addressed this issue, we can update the add-on to include the upstream fix.

../Frenck

@frenck frenck closed this as not planned Won't fix, can't repro, duplicate, stale Oct 1, 2024
@7wells
Copy link
Author

7wells commented Oct 1, 2024

Thanks, I opened an issue over there (and mention it here for others). If this is not wanted, I will remove my note.
danielperna84/hass-configurator#248

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

2 participants