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!
264 stars 43 forks source link

doesn't work (vlines: hlines: names :) #22

Open Silent4831 opened 4 years ago

Silent4831 commented 4 years ago

Hello! Can someone tell me, it doesn't work (vlines: hlines: names :) when using these attributes, the card simply doesn't appear on the page, there are no errors, it just disappears. In the example below, only hlines: is specified, but this also doesn't work with others. 2020-08-25_18-14-57

ranrinc commented 4 years ago

+1 need more information on making this system running

yordanov-alexandar commented 3 years ago

I had this problem for some time - whenever I try to put a state in the layout section the card disappears without an error in the home assistant gui, but there are a lot of errors in the browser console. And that led me to a fix that works for me: in the file www/community/flex-horseshoe-card/flex-horseshoe-card.js on line 799:

this.config.animations[animation].map(item => {

just add

if (this.config.animations[animation]) 

in front of it. You will need to make a gz file from flex-horseshoe-card.js and replace flex-horseshoe-card.js.gz in the same directory because that is the file that home assistant uses.