PiotrMachowski / lovelace-html-card

This card displays provided data as an HTML content of a card.
MIT License
54 stars 7 forks source link

Fix throwing when HTML content tries to access unkown Home Assistant entities #10

Open Jpsy opened 2 years ago

Jpsy commented 2 years ago

The example content given in the readme contains [[input_number.system_volume]] which is an unknown entity in most HA incarnations. This leads to JS errors in the card and breaks the whole Lovelace page. The PR fixes that.

PR also contains a minor documentation change to explain the modern way of adding JS resources to Lovelace. (Sorry for mixing 2 things here.)