@ninjadog wrote:
I’ve copied and installed a package setup from a colleague. But, there’s error(s) and I’m not sure where ? Can you see - it’s something to do with “@ data[‘switch’][‘platform’]” but this could be any file.
Lots of files in the package and the items are interrelated so removing one by one to find the error isnt possible.
Logging set to…
default: warning logs: homeassistant: info
But the logs do not help to identify the offending file …
Apr 18 13:47:53 pi systemd[1]: Started Home Assistant. Apr 18 13:47:56 pi hass[22966]: 2020-04-18 13:47:56 INFO (MainThread) [homeassistant.bootstrap] Config directory: /home/homeassistant/.homeassistant Apr 18 13:47:57 pi hass[22966]: Traceback (most recent call last): Apr 18 13:47:57 pi hass[22966]: File "/srv/homeassistant/bin/hass", line 10, in <module> Apr 18 13:47:57 pi hass[22966]: sys.exit(main()) Apr 18 13:47:57 pi hass[22966]: File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/__main__.py", line 342, in main Apr 18 13:47:57 pi hass[22966]: exit_code = asyncio.run(setup_and_run_hass(config_dir, args)) Apr 18 13:47:57 pi hass[22966]: File "/usr/lib/python3.7/asyncio/runners.py", line 43, in run Apr 18 13:47:57 pi hass[22966]: return loop.run_until_complete(main) Apr 18 13:47:57 pi hass[22966]: File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete Apr 18 13:47:57 pi hass[22966]: return future.result() Apr 18 13:47:57 pi hass[22966]: File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/__main__.py", line 249, in setup_and_run_hass Apr 18 13:47:57 pi hass[22966]: safe_mode=args.safe_mode, Apr 18 13:47:57 pi hass[22966]: File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/bootstrap.py", line 83, in async_setup_hass Apr 18 13:47:57 pi hass[22966]: config_dict = await conf_util.async_hass_config_yaml(hass) Apr 18 13:47:57 pi hass[22966]: File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/config.py", line 308, in async_hass_config_yaml Apr 18 13:47:57 pi hass[22966]: await merge_packages_config(hass, config, core_config.get(CONF_PACKAGES, {})) Apr 18 13:47:57 pi hass[22966]: File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/config.py", line 608, in merge_packages_config Apr 18 13:47:57 pi hass[22966]: PACKAGES_CONFIG_SCHEMA(packages) Apr 18 13:47:57 pi hass[22966]: File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/config_validation.py", line 421, in verify Apr 18 13:47:57 pi hass[22966]: return cast(Dict, schema(value)) Apr 18 13:47:57 pi hass[22966]: File "/srv/homeassistant/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 272, in __call__ Apr 18 13:47:57 pi hass[22966]: return self._compiled([], data) Apr 18 13:47:57 pi hass[22966]: File "/srv/homeassistant/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict Apr 18 13:47:57 pi hass[22966]: return base_validate(path, iteritems(data), out) Apr 18 13:47:57 pi hass[22966]: File "/srv/homeassistant/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 432, in validate_mapping Apr 18 13:47:57 pi hass[22966]: raise er.MultipleInvalid(errors) Apr 18 13:47:57 pi hass[22966]: voluptuous.error.MultipleInvalid: expected dict for dictionary value @ data['switch']['platform'] Apr 18 13:47:57 pi systemd[1]: home-assistant@homeassistant.service: Main process exited, code=exited, status=1/FAILURE Apr 18 13:47:57 pi systemd[1]: home-assistant@homeassistant.service: Failed with result 'exit-code'. Apr 18 13:48:02 pi systemd[1]: home-assistant@homeassistant.service: Service RestartSec=5s expired, scheduling restart. Apr 18 13:48:02 pi systemd[1]: home-assistant@homeassistant.service: Scheduled restart job, restart counter is at 36. Apr 18 13:48:02 pi systemd[1]: Stopped Home Assistant.
Posts: 1
Participants: 1