MrBartusek / MeteoalarmCard

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

French - Environment Canada - Issue with alert "Veille D'Orages Violents" #213

Closed w1zz4 closed 9 months ago

w1zz4 commented 10 months ago

Describe the bug

There is an issue with the alert " Veille D'Orages Violents " from Environemment Canada. The card is looking for " Veille De " prefix but in that case the prefix is " Veille D' "

Integration state attributes

No response

Screenshots

image image

Card version

v2.5.4

Installation type

Home Assistant Community Store (HACS)

Card Configuration

Integration type

Environnement Canada

Integration configuration

GUI

Integration Configuration

No response

MrBartusek commented 10 months ago

The card is looking for " Veille De " prefix but in that case the prefix is " Veille D' "

is this a permanent change or it's just specific wording to this type of alert?

w1zz4 commented 10 months ago

TBH, I don’t know if the behaviour changed because I started uaing it today. Maube they fixed a typo or maybe none noticed it before.

For the problem itself, the case of “de“ vs “d’” is the exact same rule than “a” and “an“ in English. If the first letter of the following word is a vowel it’s “d’” otherwise it’s “de”. So both cases are possible.

Thank you