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

Horseshoe card doesn't work after update of HA to 2022.10.5 #58

Open
JaroslawPrzybyl opened this issue Oct 28, 2022 · 8 comments
Open
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@JaroslawPrzybyl
Copy link

This card stop working after last update of HA.
Do you know this issue and is any fix available?

@Mediacj
Copy link

Mediacj commented Oct 28, 2022

Same for me I reinstalled the card but still the same. I get this error:
"Custom element doesn't exist: flex-horseshoe-card."

@mhooghiemstra79
Copy link

Same here on my mobile devices.
Strange thing is though on my nest hub where I use dash cast to cast the same dashboard it works fine.

@AmoebeLabs
Copy link
Owner

AmoebeLabs commented Oct 28, 2022

I think that if you would check the console from Chrome you will see CORS errors.

My installation does NOT work anymore with the latest HA if I omit the cors_allowed_origins

HA currently needs the cors_allowed_origins to be set (https://www.home-assistant.io/integrations/http/)

FH needs some stuff from unkpg.com. My current list is:

http:
  server_port: 8123
  use_x_forwarded_for: true
  cors_allowed_origins:
    - https://google.com
    - https://www.home-assistant.io
    - https://unpkg.com
    - https://<my-ha-domain.com>

You can also use a CORS plugin for Chrome to test things:

image

My test cards are still working with the latest HA:

image

image

Let me know if the CORS errors are indeed the problem!

@JaroslawPrzybyl
Copy link
Author

After adding this section to http config, it started to work, thx!

@AmoebeLabs
Copy link
Owner

After adding this section to http config, it started to work, thx!

Great. I have pinned this issue, and will add some comments to the readme tomorrow! It’s now F1 FP1 time 😄

Since I tested already the beta’s, I totally forgot this issue once this HA version would be released…

@ZoltanPerhacs
Copy link

Hello!

I tried the above method, but it doesn't work.
Home Assistant 2022.3.5
Manual installation.
Card doesn't show up in add card to dashboard. Other custom cards do.

@koala04
Copy link

koala04 commented Apr 4, 2023

i have same problem.

my configuration.yaml already include:

http:
server_port: 8123
cors_allowed_origins:
- https://google.com
- https://www.home-assistant.io
- https://unpkg.com

but i recive:

Access to script at 'https://unpkg.com/lit-html@%5E1.0.0?module' from origin 'http://192.168.xxx.xxx:8123' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Uncaught (in promise) http://192.168.xxx.xxx:8123/hacsfiles/flex-horseshoe-card/flex-horseshoe-card.js?hacstag=207292725090

@djbombacz
Copy link

I have same problem.
Home Assistant 2023.3.6 / Sup. 2023.03.3 / 9.5
I get this error:
"Custom element doesn't exist: flex-horseshoe-card."
Do you know this issue and is any fix available?

@AmoebeLabs AmoebeLabs added bug Something isn't working documentation Improvements or additions to documentation labels May 3, 2023
@AmoebeLabs AmoebeLabs added this to the Things to Check milestone May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

7 participants