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

issue with showing value #4

Open
Faydon1 opened this issue Apr 11, 2023 · 2 comments
Open

issue with showing value #4

Faydon1 opened this issue Apr 11, 2023 · 2 comments

Comments

@Faydon1
Copy link

Faydon1 commented Apr 11, 2023

code
När jag lägger in allergener som inte har något värde, så får jag ett felmeddelande
min kod
type: custom:pollen-card
city: Stockholm
allergens:

  • Alm
  • Ambrosia
  • Björk
  • Ek
  • Gråbo
  • Gräs
  • Hassel
  • Sälg / vide
    show_text: true

tar jag bort alla som inte har något värde så fungerar det.

@krissen
Copy link

krissen commented Apr 25, 2023

Problemet är inte allergener utan värde, tror jag, utan sälg / vide.

@krissen
Copy link

krissen commented Apr 25, 2023

Om du ändrar rad 20 till:

            return intext.toLowerCase().replaceAll("å","a").replaceAll("ä","a").replaceAll("ö","o").replace(' \/ ','_');

Fungerar det då för dig också? Har alltså lagt till ersättning av / till _, för att få config-inställningen Sälg / vide till sensor.[city]_salg_vide.

@Faydon1 Faydon1 closed this as completed Jul 10, 2024
@Faydon1 Faydon1 reopened this Jul 10, 2024
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