After updating my CCH (Custom Compact Header) i’m receiving an error when trying to validate my script.
I’ve downloaded the 2 JS files and placed them into “www/custom-lovelace/compact-custom-header/”
After that i’ve opend my configuration.yaml and added the following:
#Custom Header Template
resources:
# Add to the version number at the end of URL when updating.
- url: /local/custom-lovelace/compact-custom-header/compact-custom-header.js?v=0.0.1
type: module
It’s working, but i can’t validate my script, so no restarts.
the “resources:” section and ny following entries don’t go into the configuration.yaml file.
those entries go into your lovelace configuration file. And depending on if you use yaml mode or config it thru the GUI determines how it has to be entered.
Not quite. The version number is arbitrary. The only requirement is if you install a new version you must increment the version or it remains cached and won’t load.