Skip to content

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

@7wells

Description

@7wells

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions