Villhellm / custom-sidebar

Custom Sidebar for Home Assistant
115 stars 23 forks source link

404 when loading #31

Open ElBoonoS opened 3 years ago

ElBoonoS commented 3 years ago

Loading the config file didn't work for me.

There was a 404 present on req.open("GET", "/local/sidebar-order.yaml?rnd=" + random());

I replaced the following line in the JS and the GZ

req.open("GET", "/hacsfiles/custom-sidebar/sidebar-order.yaml?rnd=" + rando());
//req.open("GET", "/local/sidebar-order.yaml?rnd=" + random());

and now it's working - but I assume more people will run into this problem

sstratoti commented 3 years ago

Getting the same error. I don't seem to have a hacsfiles - the js file is under...

local/community/custom-sidebar/custom-sidebar.js

Should I be creating a yaml file there and pointing it there?