Just a question to all the brilliant people that make hass work. With lovelace becoming the standard UI in the next major release and the recent outage of ‘unpkg’ that completely borked a load of custom cards using the ‘lit-element’ module, i was wondering how hard a job it would be to have lit-element hosted locally to hass, thus removing the external dependency?
I have no idea how to do it myself but it really caused me issues when it was unavailable.
Good point! This morning, I saw the maker of button-card do exactly this in this commit. But I’m a bit hesitating for my own card (power-wheel-card), so I decided to upgrade first to a newer version of lit-element by still having a external dependency like in this commit. I have to find out which version of lit-element HA is using. Maybe I have to upgrade further than 6.5 already.
For me, reasons to hesitate are the breaking changes between versions of lit-element, combined with the fact that you don’t know when HA upgrades her version of lit-element in the future. That could break your own card.
Just so you know kuuji fixed this in his button-card. I’m not sure if your card relies on anything not included in the version of lit-element on hass but might be worth more investigation.