MrBartusek / MeteoalarmCard

Meteoalarm, Météo-France and DWD severe weather warnings card for Home Assistant Lovelace UI ⛈️
MIT License
134 stars 49 forks source link

Color bug in v2.4.3 #163

Closed 1doubleDD1 closed 1 year ago

1doubleDD1 commented 1 year ago

Describe the bug

Hi, I've just tried your custom card for the first time, and I've downloaded the latest version (v2.4.3). There seems to be a bug with the coloring in it, as in my region I currently have a moderate yellow warning but the custom card is actually orange, and even if I override headline it says "Orange warning". Then I downloaded the previous version (v2.4.2) and everything is working OK (color on screen is yellow and override gives me a "Yellow warning")

Again, I've changed nothing except the version od the card.

Steps to reproduce

No response

Screenshots

image image image image image

Card version

v2.4.3

Integration type

Meteoalarm

Installation type

Manual

Card Configuration

[type: custom:meteoalarm-card
entities:
  - entity: binary_sensor.meteoalarm
integration: meteoalarm
override_headline: false
hide_when_no_warning: true
]

Integration Configuration

[binary_sensor:
  - platform: meteoalarm
    country: "Switzerland"
    province: "Effretikon"]
MrBartusek commented 1 year ago

Yes, it seams like it is caused by #161. Moderate severity is orange for NINA and yellow for anything else. Thanks for the report!