flex-horseshoe-card icon indicating copy to clipboard operation
flex-horseshoe-card copied to clipboard

Cannot read property 'setConfig' of undefined

Open LanceMcCarthy opened this issue 5 years ago • 3 comments

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

LanceMcCarthy avatar Feb 23 '20 23:02 LanceMcCarthy

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.

mimarcos avatar Jul 30 '20 06:07 mimarcos

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

LanceMcCarthy avatar Jul 31 '20 01:07 LanceMcCarthy

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

mimarcos avatar Jul 31 '20 11:07 mimarcos