Skip to content

Commit

Permalink
Fix "Special Weather" Alert Type Not Found (#196)
Browse files Browse the repository at this point in the history
Thank you!
  • Loading branch information
brendangoldz authored Jun 27, 2023
1 parent c556489 commit c799617
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/integrations/weatheralerts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ export default class Weatheralerts implements MeteoalarmIntegration {
'Tropical Storm': MeteoalarmEventType.Hurricane,
'Hurricane': MeteoalarmEventType.Hurricane,
'Air Quality': MeteoalarmEventType.AirQuality,
'Rip Current': MeteoalarmEventType.CoastalEvent // https://github.com/MrBartusek/MeteoalarmCard/issues/183
'Rip Current': MeteoalarmEventType.CoastalEvent, // https://github.com/MrBartusek/MeteoalarmCard/issues/183
'Special Weather': MeteoalarmEventType.Unknown
};
}

Expand Down
6 changes: 3 additions & 3 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ export class Utils {
/**
* Some integrations store their event mapping in key-value dict, this
* function convert this list for metadata.monitoredConditions
* @param evenTypes evenTypes dict
* @param eventTypes eventTypes dict
*/
public static convertEventTypesForMetadata(evenTypes: { [key: number | string]: MeteoalarmEventType }): MeteoalarmEventType[] {
return [...new Set(Object.values(evenTypes))];
public static convertEventTypesForMetadata(eventTypes: { [key: number | string]: MeteoalarmEventType }): MeteoalarmEventType[] {
return [...new Set(Object.values(eventTypes))];
}
}

0 comments on commit c799617

Please sign in to comment.