v4.3.3.12 - Update NsPanelTs.ts

This commit is contained in:
Armilar
2023-12-08 22:20:08 +01:00
committed by GitHub
parent 9a3627427f
commit f3f93b7136

View File

@@ -3814,7 +3814,7 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
if (existsState(pageItem.id + '.ACTUAL')) { if (existsState(pageItem.id + '.ACTUAL')) {
let timer_actual = getState(pageItem.id + '.ACTUAL').val let timer_actual = getState(pageItem.id + '.ACTUAL').val
name = String(Math.floor(timer_actual / 60)) + ':' + String(timer_actual % 60); name = ('0' + String(Math.floor(timer_actual / 60))).slice(-2) + ':' + ('0' + String(timer_actual % 60)).slice(-2);
} }
if (Debug) log('CreateEntity Icon role value.alarmtime ~' + type + '~' + pageItem.id + '~' + iconId + '~' + iconColor + '~' + name + '~' + alarmtimerText + ' ' + val, 'info'); if (Debug) log('CreateEntity Icon role value.alarmtime ~' + type + '~' + pageItem.id + '~' + iconId + '~' + iconColor + '~' + name + '~' + alarmtimerText + ' ' + val, 'info');
@@ -7472,13 +7472,13 @@ function GenerateDetailPage(type: string, optional: string, pageItem: PageItem):
sec_remaining = timer_actual % 60; sec_remaining = timer_actual % 60;
editable = 1; editable = 1;
action2 = 'start'; action2 = 'start';
label2 = 'ein'; label2 = findLocale('timer', 'on');
} else { } else {
min_remaining = Math.floor(timer_actual / 60); min_remaining = Math.floor(timer_actual / 60);
sec_remaining = timer_actual % 60; sec_remaining = timer_actual % 60;
editable = 0; editable = 0;
action2 = 'pause'; action2 = 'pause';
label2 = 'aus'; label2 = findLocale('timer', 'off');;
} }
} }