Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cards broken when no internet connection #84

Open
studiowena opened this issue Dec 5, 2023 · 10 comments
Open

cards broken when no internet connection #84

studiowena opened this issue Dec 5, 2023 · 10 comments

Comments

@studiowena
Copy link

Hi,

Can You change code to be independed from internet connection and work only from local files downloaded to HA?

i think this broke cards when have no internet connection

import {
  LitElement,
  html,
  css,
  svg
  } from "https://unpkg.com/[email protected]/lit-element.js?module";

please change it to work without internet connection

@Dackara
Copy link

Dackara commented Jan 20, 2024

I have the same problem, it's very disturbing.
image

@maxpilotevan
Copy link

+1
Did someone find a solution or an alternative to fix this issue ?

@gitmarecki
Copy link

gitmarecki commented Apr 12, 2024

seems there is a larger issue with this component - since the server https://unpkg.com is randomly unavailable from different parts of the world (I cannot see it from UAE, but it's perfectly accessible for me from hetzner and azure networks). This of course renders all my dashboards useless ATM...

debugging in chrome confirms it's the problem with access to the third party:

image

When trying to download it manually, it randomly shows cloudflare error after a long timeout or nothing at all...

@studiowena
Copy link
Author

whats the problem to have this JS localy on our HA? It should be implemented at beginning... we have to change code to local destination of this script

@gitmarecki
Copy link

replacing the path inside /homeassistant/www/community/flex-horseshoe-card/flex-horseshoe-card.js file does not have any effect on existing installation... not sure how to reconfigure it to use this file once the card is already installed.

BTW. looks like the problem with availability of unpkg.com has been addressed and everything is back to normal again.

@studiowena
Copy link
Author

replacing the path inside /homeassistant/www/community/flex-horseshoe-card/flex-horseshoe-card.js file does not have any effect on existing installation... not sure how to reconfigure it to use this file once the card is already installed.

BTW. looks like the problem with availability of unpkg.com has been addressed and everything is back to normal again.

there is more import in code in this unpkg... so author need to import all stuff or maybe he cant cuz of license of lib?

@ytsopelas
Copy link

ytsopelas commented May 16, 2024

Same problem here - hopefully it will be fixed (i.e. cards will become independent of an internet connection).

@robotpandarocket
Copy link

+1. I love the horseshoe card but it goes against my principles with my HA installation that it should continue to work without internet. Would be great to get this fixed.

@w0vka
Copy link

w0vka commented Jul 5, 2024

i think the solution you all are looking for is described in this #88 (comment) by @abu9

Simply download the LitElement and you are no longer dependent on the internet.

@ytsopelas
Copy link

i think the solution you all are looking for is described in this #88 (comment) by @abu9

Simply download the LitElement and you are no longer dependent on the internet.

Thank you w0vka!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants