HA won't restart / config validator broken?

Hey guys,

I have an issue with the config validator, that is preventing me from restarting HA.
At least this is what I (not a developer) read out of that error message…

Logger: homeassistant.core
Source: helpers/config_validation.py:755
First occurred: 9:20:56 PM (1 occurrences)
Last logged: 9:20:56 PM

Error executing service: <ServiceCall homeassistant.restart (c:79d089c51e9d0c410b7c354386027c66)>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 1464, in catch_exceptions
    await coro_or_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1483, in _execute_service
    await handler.job.target(service_call)
  File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 378, in async_handle_core_service
    errors = await conf_util.async_check_ha_config_file(hass)
  File "/usr/src/homeassistant/homeassistant/config.py", line 874, in async_check_ha_config_file
    res = await check_config.async_check_ha_config_file(hass)
  File "/usr/src/homeassistant/homeassistant/helpers/check_config.py", line 177, in async_check_ha_config_file
    p_validated = platform_schema(p_validated)
  File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 272, in __call__
    return self._compiled([], data)
  File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 386, in validate_mapping
    cval = cvalue(key_path, value)
  File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 817, in validate_callable
    return schema(data)
  File "/usr/src/homeassistant/homeassistant/helpers/config_validation.py", line 470, in verify
    return cast(Dict, schema(value))
  File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 272, in __call__
    return self._compiled([], data)
  File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 386, in validate_mapping
    cval = cvalue(key_path, value)
  File "/usr/local/lib/python3.8/site-packages/voluptuous/validators.py", line 215, in _run
    return self._exec(self._compiled, value, path)
  File "/usr/local/lib/python3.8/site-packages/voluptuous/validators.py", line 338, in _exec
    v = func(path, v)
  File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 817, in validate_callable
    return schema(data)
  File "/usr/src/homeassistant/homeassistant/helpers/config_validation.py", line 755, in validator
    if key in config:
TypeError: argument of type 'NoneType' is not iterable

Anyone any tipps for me what I can do to fix this?
I use HassOS 4.15, so I don’t have access to those folders mentioned in the error log.
I can still restart (hard) using the supervisor tool - but that might not be the best way to go.
The problem is with me since 0.115 - from what I remember, so it’t not new. I just now find the time to - at least try to - do something about it.

Let me know If I forgot important information. I will try not to waste your time…
Thanks in advance!
Kai

1 Like

Hi.
I have the same problem . did you manage to solve it?

Logger: homeassistant.core
Source: helpers/config_validation.py:755
First occurred: 3:03:28 (2 occurrences)
Last logged: 10:34:16

Error executing service: <ServiceCall homeassistant.restart (c:0763ae6afec8586eab0090bfb19083f5)>
Error executing service: <ServiceCall homeassistant.restart (c:a7a095896479e0101d5e0511b8a95d27)>
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/core.py”, line 1464, in catch_exceptions
await coro_or_task
File “/usr/src/homeassistant/homeassistant/core.py”, line 1483, in _execute_service
await handler.job.target(service_call)
File “/usr/src/homeassistant/homeassistant/components/hassio/init.py”, line 378, in async_handle_core_service
errors = await conf_util.async_check_ha_config_file(hass)
File “/usr/src/homeassistant/homeassistant/config.py”, line 874, in async_check_ha_config_file
res = await check_config.async_check_ha_config_file(hass)
File “/usr/src/homeassistant/homeassistant/helpers/check_config.py”, line 177, in async_check_ha_config_file
p_validated = platform_schema(p_validated)
File “/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py”, line 272, in call
return self._compiled([], data)
File “/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py”, line 594, in validate_dict
return base_validate(path, iteritems(data), out)
File “/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py”, line 386, in validate_mapping
cval = cvalue(key_path, value)
File “/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py”, line 817, in validate_callable
return schema(data)
File “/usr/src/homeassistant/homeassistant/helpers/config_validation.py”, line 470, in verify
return cast(Dict, schema(value))
File “/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py”, line 272, in call
return self._compiled([], data)
File “/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py”, line 594, in validate_dict
return base_validate(path, iteritems(data), out)
File “/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py”, line 386, in validate_mapping
cval = cvalue(key_path, value)
File “/usr/local/lib/python3.8/site-packages/voluptuous/validators.py”, line 215, in _run
return self._exec(self._compiled, value, path)
File “/usr/local/lib/python3.8/site-packages/voluptuous/validators.py”, line 338, in _exec
v = func(path, v)
File “/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py”, line 817, in validate_callable
return schema(data)
File “/usr/src/homeassistant/homeassistant/helpers/config_validation.py”, line 755, in validator
if key in config:
TypeError: argument of type ‘NoneType’ is not iterable

Quick update:

  • by now I am running on Home Version Assistant 0.118.4
  • HassOS is on 4.17
  • Supervisor Version: 2020.12.0

I tried running ha su repair, but that also did not change that the validator won’t run.
Every hint on what I could / should try is very welcome! :slight_smile:

Hi Jaissa,

I just realized that I did not answer your question, I am very sorry about that.
But the short answer is: no.

But I will continue finding a solution and will let you know if I did find one.
Cheers,
Kai