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

no longer working #22

Closed
madtraxx18 opened this issue Nov 1, 2022 · 8 comments
Closed

no longer working #22

madtraxx18 opened this issue Nov 1, 2022 · 8 comments

Comments

@madtraxx18
Copy link

Downloaded and installed the latest version as the next race wasn't showing:

copied file to:

config/www

doublechecked the configuration.yaml for:

lovelace:
resources:
- url: /local/formulaone-card.js
type: module

Even added the .js file as a card (sources through cards)

this is the result:

custom element doesn't exist formulaone-card.

type: custom:formulaone-card
card_type: next_race
sensor: sensor.formula_one_sensor_races
title: Next Race
date_locale: nl
image_clickable: false

I see the following in the logs:

2022-11-01 20:43:18.274 ERROR (MainThread) [frontend.js.latest.202209072] http://homeassistant.local:8123/local/formulaone-card.js:8:1 Uncaught SyntaxError: Unexpected token '<'

Have tried to restore an older version of the .js file and rebooted HA several times, doesn't seem to help either.

How can I install the integration using HACS and where is it listed?

@marcokreeft87
Copy link
Owner

If an older version doesnt work the problem is with your local files. Nothing I can help you with :(

@madtraxx18
Copy link
Author

yeah seems logical, but any explanation on how to install it through HACS? that would help out a lot!

@marcokreeft87
Copy link
Owner

If you add https://github.com/marcokreeft87/formulaone-card to custom repos in HACS you should find the card.

@madtraxx18
Copy link
Author

Hmmm found the issue, cache.... damn it....

delete the cache reinstalled everything and got it working again (with the flags!!)

For the HACS part, i've now added your github page as a repository and that allowed to install it using HACS.
Didn't find this anywhere in the readme file.

Thanks for a great effort, really like the flags and teams addition!

@marcokreeft87
Copy link
Owner

Yeah cache is a ****. HACS used to clear it for you when you update or install a repo, but not anymore. I have a pull request open to make the card findable in HACS but they are super slow with reviewing.

@madtraxx18
Copy link
Author

yeah especially if it just f*cks up an entire card, had the same thing happening with the Miflora plant status card (should have dug deeper in my memory) :-)

@marcokreeft87
Copy link
Owner

Oh well, you made it work right?

@madtraxx18
Copy link
Author

yeah right :-D

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

2 participants