Closed Khayrisill closed 2 months ago
I have the same error right now. Seems like this is in lines 190-215 of env_canada.ts
it should have also :
like the "Veille D'" on line 202.
I cannot PR right now but if someone can, i think it would fix it.
private get entityTypeTranslation(): { en: string[]; fr: string[]; type: EnvCanadaEntityType }[] {
// English from: https://www.canada.ca/en/environment-climate-change/services/types-weather-forecasts-use/public/criteria-alerts.html
// French from : https://www.canada.ca/fr/environnement-changement-climatique/services/types-previsions-meteorologiques-utilisation/publiques/criteres-alertes-meteo.html
return [
{
type: EnvCanadaEntityType.Warning,
en: ['Warning'],
fr: ['Avertissement De', "Avertissement D'"],
},
{
type: EnvCanadaEntityType.Watch,
en: ['Watch'],
fr: ['Veille De', "Veille D'"],
},
{
type: EnvCanadaEntityType.Statement,
en: ['Statement'],
fr: ['Bulletin'],
},
{
type: EnvCanadaEntityType.Advisory,
en: ['Advisory'],
fr: ['Avis De', "Avis D'"],
},
];
}
Hey, can you guys help me understand this? Is Avis Météorologique
like a general not-specific alert?
If that's the cause we would also need to map Météorologique
to a unknown alert
Hey, can you guys help me understand this? Is
Avis Météorologique
like a general not-specific alert?If that's the cause we would also need to map
Météorologique
to a unknown alert
yes it is
Thank you guys :heart: This will be a part of v2.7.0
Describe the bug
Environnement Canada issued an advisory but it not correctly reported to the Meteoalarm card.
Not sure if this is coming from environment Canada or something went wrong with the card.
Integration state attributes
Screenshots
Card version
V2.5.4
Installation type
Home Assistant Community Store (HACS)
Card Configuration
name: Meteoalarm type: custom:meteoalarm-card integration: env_canada entities:
Integration type
Environnement Canada
Integration configuration
YAML (configuration.yaml)
Integration Configuration
No response