question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Home assistant 107.6 config is not an object

See original GitHub issue

In between two cards i have a break, on the front end i have a red box that says config is not an object

resources:
  - url: /local/custom-lovelace/upcoming-media-card/upcoming-media-card.js
    type: js
  - url: /local/layout-card.js
    type: module


views:
  - type: custom:layout-card
    layout: vertical
    cards:
        - type: thermostat
          entity: climate.main_floor
        - break
        - type: 'custom:upcoming-media-card'
          entity: sensor.plex_recently_added
          title: Recently Downloaded
          image_style: fanart

https://imgur.com/rRiRqDh

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mmverkcommented, Nov 19, 2020

I had the same issue, it drove me mad. I had an existing lovelace dashboard that I tweaked to use the layout-card. That worked fine, the layouts and column widths got adjusted so the layout card seemed to work perfectly. Untill I used the - break… Same issue, the red rectangle with ’ config is not an object’. My hunch was that it is not so much a bug in the layout card but somehow the combination of the already existing script entries. I tried numerous tweaks and none of them worked.

In the end I removed the full existing script and started one from scratch. Of course I saved my existing script first as a seperate textfile. I configured the new script via the UI, simply with a few markdowns. I again edited that script to get it to use the layout card. And, I used the break command and it straight away worked. That script will be the base for the development of my lovelace dashboard.

To help you all that are still running into this issue I have copied my very simple dashboard script below that uses the layout card and has a working - break command.

views:

  • title: Hoofd path: hoofd badges: [] cards:
    • type: ‘custom:layout-card’ layout: vertical column_num: 7 cards:
      • type: markdown content: ‘Test 1’
      • type: markdown content: ‘Test 2’
      • type: markdown content: ‘Test 3’
      • break
      • type: markdown content: ‘Test 4’
      • type: markdown content: ‘Test 5’

If you copy the above in a new dashboard I am confident it will also work for you. All dots in the text are actually - dashes but the editor changed it after pasting.

Michel simple.txt

1reaction
olegosipenko87commented, Sep 18, 2020

HA 0.115 problem still exists

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting your configuration - Home Assistant
It can happen that you run into trouble while configuring Home Assistant. Perhaps an integration is not showing up or is acting strangely....
Read more >
Configuration.yaml saving issues - Home Assistant Community
i have a problem, i am changing the configuration.yaml and it saves ... the error “[object Object]” , the changes are saved but...
Read more >
Cannot View 'Overview' - Home Assistant Community
When I click overview I receive the following message: Error loading the view strategy: TypeError: undefined is not an object (evaluating ...
Read more >
Weird message in configuration check
When I now do a configuration check, I get a weird non descriptive message. “Configuration will not prevent Home Assistant from starting!
Read more >
'NoneType' object is not iterable - Home Assistant Community
I got this error: 2021-05-10 16:29:41 ERROR (MainThread) [homeassistant.helpers.check_config] Unexpected error validating config Traceback ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found