Skip to content

Commit

Permalink
[rulesx] Update duration strings for timerMgr breaking change
Browse files Browse the repository at this point in the history
Fixes #16.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
  • Loading branch information
florian-h05 committed Oct 20, 2022
1 parent 2a4cb79 commit 3b7440b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rulesx/alerting.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ class HeatFrostalarm {
return actions.NotificationAction.sendBroadcastNotification(`${this.config.notification.warning.title}${items.getItem(contactItem).label}${this.config.notification.warning.message}`);
}
// If not called on expire of timer, schedule timer.
const timerTime = (alarmLevel !== 4) ? time + this.config.time.addForWarning + 'm' : time + 'm';
const timerTime = (alarmLevel !== 4) ? 'PT' + time + this.config.time.addForWarning + 'M' : 'PT' + time + 'M';
if (this.timerMgr.hasTimer(contactItem)) {
console.info(`checkContact: Timer for ${contactItem} (${this.config.type}) already exists, skipping!`);
} else {
Expand Down

0 comments on commit 3b7440b

Please sign in to comment.