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

voluptuous.error.MultipleInvalid: expected a dictionary for dictionary value #108519

Closed
Die-Meester opened this issue Jan 20, 2024 · 1 comment
Closed

Comments

@Die-Meester
Copy link

The problem

Upgrading to 2024.1.4 causes HA not to start due to empty or commented YAML files.

What version of Home Assistant Core has the issue?

core-2024.1.4

What was the last working version of Home Assistant Core?

core-2024.1.3

What type of installation are you running?

Home Assistant Container

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

2024-01-20 18:50:54.562 ERROR (MainThread) [root] Uncaught exception Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/__main__.py", line 221, in <module> sys.exit(main()) ^^^^^^ File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main exit_code = runner.run(runtime_conf) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/runner.py", line 188, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/runner.py", line 154, in setup_and_run_hass hass = await bootstrap.async_setup_hass(runtime_config) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 147, in async_setup_hass config_dict = await conf_util.async_hass_config_yaml(hass) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/config.py", line 501, in async_hass_config_yaml await merge_packages_config(hass, config, core_config.get(CONF_PACKAGES, {})) File "/usr/src/homeassistant/homeassistant/config.py", line 1029, in merge_packages_config PACKAGES_CONFIG_SCHEMA(packages) File "/usr/src/homeassistant/homeassistant/helpers/config_validation.py", line 588, in verify return cast(dict, schema(value)) ^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 272, in __call__ return self._compiled([], data) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 595, in validate_dict return base_validate(path, iteritems(data), out) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 433, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: expected a dictionary for dictionary value @ data['sonoff']

Example YAML snippet

# sonoff:
#   username: !secret sonoff_username
#   password: !secret sonoff_password
#   reload: always
#   force_update: [temperature, power]
#   scan_interval: "00:05:00" # (optional) default 5 minutes
#   sensors: [temperature, humidity, power, current, voltage]
#   devices:
#     1001551bfd:
#       device_class:
#         - light
#         - light
#         - light
#       name: "Bedroom Light Switch"
#     # 10013218b0:
#     #   device_class: current

Anything in the logs that might be useful for us?

No response

Additional information

Deleting or renaming the commented or empty YAML files resolves the issue and allows the docker container to start.
Using packages.

@joostlek
Copy link
Member

Fixed by #108489

@github-actions github-actions bot locked and limited conversation to collaborators Feb 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants