core: Person cannot be merged (Packages)
Home Assistant release with the issue:
0.88.0
Last working Home Assistant release (if known): new component
Operating environment (Hass.io/Docker/Windows/etc.):
homeassistant in docker on unRAID system
Component/platform:
https://www.home-assistant.io/components/person
Description of problem: the person component cannot be configured in a package. if the same code is present in the configuration.yaml it all works.
Problem-relevant configuration.yaml
entries and (fill out even if it seems unimportant):
person:
- name: Roland
id: person_roland
device_trackers:
- device_tracker.nmap_rolands_nokia
this works!
But:
packages:
!include_dir_named packages
with this as an include file does not work. (filename person.yaml)
person:
- name: Roland
id: person_roland
device_trackers:
- device_tracker.nmap_rolands_nokia
Traceback (if applicable):
2019-02-22 21:14:33 ERROR (MainThread) [homeassistant.config] Package person setup failed. Component person cannot be merged. Expected a dict. (See /config/packages/person.yaml:4).
Additional information: https://community.home-assistant.io/t/component-person-cannot-be-merged/100963
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 4
- Comments: 16 (11 by maintainers)
Commits related to this issue
- Person schema for merge_packages #21307 * Google Assistant: Create and pass context to service calls * Refactor request data into separate object and pass to execute. — committed to kellerza/home-assistant by Swamp-Ig 5 years ago
- Person schema for merge_packages #21307 — committed to kellerza/home-assistant by kellerza 5 years ago
- Person schema for merge_packages #21307 — committed to kellerza/home-assistant by kellerza 5 years ago
- Tests split from #21307 — committed to kellerza/home-assistant by kellerza 5 years ago
- Person schema for merge_packages #21307 (#21703) * Person schema for merge_packages #21307 * empty list * skip empty persons * hound * test schema * ensure_none * remove any test ch... — committed to home-assistant/core by kellerza 5 years ago
- Person schema for merge_packages #21307 (#21703) * Person schema for merge_packages #21307 * empty list * skip empty persons * hound * test schema * ensure_none * remove any test ch... — committed to unibeck/home-assistant by kellerza 5 years ago
Lol, so true. Will look into it tomorrow. Laptop ran out of stormlight.
It’s most likely the validation schema for person
This is not how the package key works: https://www.home-assistant.io/docs/configuration/packages/. File names become the package’s key, not the platform’s. Each package may contain a
person
key. The content of person would then be merged into a singleperson
by home-assistant before being consumed.I am too facing the same issue (person cannot be merged). The following config doesn’t work for
person
, but does for everything else (light
,cast
, … you name it). I am not usingperson.yaml
as a file name to help visualize things.configuration.yaml
packages/somebody.yaml
packages/someone.yaml
Just came back here to confirm it is all working now. Thanks a lot!
perosn.yaml
should only containIt should not have a
person:
in it, as yourinclude_dir_named
of person.yaml already creates theperson:
key