Error during startup

Last week I noticed this

An error during startup, suggesting something is wrong with either my persons or device_tracker config:

 2019-06-13 11:39:27 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback <function EventBus.async_listen_once.<locals>.onetime_listener at 0x7fdad925c950>
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 68, in uvloop.loop.Handle._run
  File "/usr/src/app/homeassistant/core.py", line 640, in onetime_listener
    self._hass.async_run_job(listener, event)
  File "/usr/src/app/homeassistant/core.py", line 342, in async_run_job
    target(*args)
  File "/usr/src/app/homeassistant/components/person/__init__.py", line 354, in person_start_hass
    self.person_updated()
  File "/usr/src/app/homeassistant/components/person/__init__.py", line 375, in person_updated
    self._update_state()
  File "/usr/src/app/homeassistant/components/person/__init__.py", line 386, in _update_state
    for entity_id in self._config.get(CONF_DEVICE_TRACKERS, []):
TypeError: 'NoneType' object is not iterable

There are only two persons in my configuration.
The config for persons.yaml

  - name: x
    id: x
    device_trackers:
      - device_tracker.iphonex

  - name: y
    id: y
    device_trackers:
     - device_tracker.y

Does anyone have an idea to what’s causing this error?

I think the only way this can happen is if your <config>/.storage/person file is corrupted. What does it look like?

Hi @pnbruckner,

You pointed me in the right direction. I’m using a single user to sign into Home-Assistant. That user had no devices configured. Removed the Person entry via the UI, and the error went away.

Must have been there since the person component was introduced…

Thanks!

1 Like