AmoebeLabs / flex-horseshoe-card

Flexible Horseshoe card for Home Assistant Lovelace UI. A card with a flexible layout, a horseshoe-like donut graph, multiple entities or attributes, graphics and animations!
289 stars 43 forks source link

Cannot read property 'setConfig' of undefined #13

Closed LanceMcCarthy closed 1 year ago

LanceMcCarthy commented 4 years ago

I try not to open issues that skew towards support, but I've double checked that I followed the instructions before coming here.

Error

When creating a simple "getting started" card, the following error is thrown:

image

I am running the latest version of Home Assistant Home Assistant 0.105.5 on HassOS in a VM.

- type: 'custom:flex-horseshoe-card'
  entities:
    - entity: sensor.glances_ram_used
      icon: 'mdi:memory'
      name: RAM Usage

Verifying Dependencies

I have restarted the Home Assistant Server several times since this was installed.

I can confirm the sensor.glances_ram_used entity itself exists and works, here a screenshot underneath another card using the same entity:

image

I've double checked that the script source is being loaded at the top of the UI resources:

image

Finally, I double checked that the file is where it is supposed to be:

image

mimarcos commented 4 years ago

Get rid of the starting - and de-indent all the lines.

I think the examples are a little off. None of this worked for me and I had the same error until I removed the dash and left all the props top level.

LanceMcCarthy commented 4 years ago

@mimarcos Are you really sure you're still using Horseshoe card anymore? It sounds like you incidentally switched to a normal entities card.

mimarcos commented 4 years ago

Very certain I am. I hit the same issue as you. Did you even try this? When you're editing a card, you're supposed to add it as a dictionary, not a list of dictionaries, as you currently are. I don't really edit entire layouts as YAML too often, but I think the representation in the docs is in a list of horseshoe cards, not using the UI builder.

Screen Shot 2020-07-31 at 7 34 36 AM Screen Shot 2020-07-31 at 7 34 26 AM