Allows preloading of Lovelace cards as a work around for changes in Home Assistant 0.107
This can be added as a custom repository to HACS
- Download all the files
- Add lovelace-card-preloader.js to /config/www/your/path
- Add to your Lovelace resources as
resources:
- url: /local/your/path/lovelace-card-preloader.js
type: js
Example configuration - add to the start of your Lovelace configuration:
preload:
- markdown
- gauge
You are likely to see errors logged in the browser console when the page loads, for example:
hui-markdown-card Error: Invalid Configuration: Content Required
This is because preloading involves creating an empty instance of the card with no config.