Reload ui-lovelace error after update 83.3

Hi all,

After the latest update 83.3 I started to get this error and I can’t open my lovelace anymore.
It just asks me to reload ui-lovelace - but no luck.

Here is the error:

Unexpected exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/websocket_api/decorators.py", line 16, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/lovelace/__init__.py", line 476, in send_with_error_handling
    result = await func(hass, connection, msg)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/lovelace/__init__.py", line 508, in websocket_lovelace_config
    return await hass.async_add_executor_job(load_config, hass)
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/lovelace/__init__.py", line 160, in load_config
    for card in view.get('cards', []):
TypeError: 'NoneType' object is not iterable

Anyone know why and how to fix it :blush:?

EDIT: I just tried running the lovelace plugin so it generated a new ui-lovelace file and now it does work again.
Unfortunately when I paste the old code in again it fails. But it was running just fine on 0.82.0…

Thanks…

Same here. Seems like it something with 0.83.3

I found the issue (at least in my case).
The problem was that I had this section n my code:

  - title: Garage
    cards:

So I guess, because I didn’t put any types under that section, it fails.

I simply removed a few lines at a time and saved it, refreshed the page until it started to work again.
That was how I found the issue.