isabellaalstrom / lovelace-pollenprognos-card

12 stars 7 forks source link

Card not displaying - dict.allergen is undefined #11

Open cbarreholm opened 3 months ago

cbarreholm commented 3 months ago

Adding the card shows the following error

dict.allergen is undefined
type: custom:pollenprognos-card
city: Stockholm
show_text: true
days_to_show: 2
allergens:
  - Al
  - Alm
  - Ambrosia
  - Björk
  - Ek
  - Gråbo
  - Gräs
  - Hassel

I have installed 1.0.4 via HACS. And Home Assistant Pollenprognos 1.0.11

cbarreholm commented 3 months ago

The problem is actually that

  - Gråbo
  - Gräs

doesn't exist. That is apparent when listing entities starting with sensor.pollen. I presume it's because the integration Pollenprognos Stockholm hasn't created entities for them. Maybe worth making the card resilient accepting them? A guess is that e.g. Gråbo will pop up later in the season.