mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-27 18:04:24 +01:00
Update NsPanelTs.ts
Fix Log output payload -> Json.stringify
This commit is contained in:
@@ -3008,7 +3008,7 @@ function findPageItem(searching: String): PageItem {
|
||||
let pageItem = activePage.items.find(e => e.id === searching);
|
||||
|
||||
if (pageItem !== undefined) {
|
||||
if (Debug) log('findPageItem -> pageItem ' + pageItem, 'info');
|
||||
if (Debug) log('findPageItem -> pageItem ' + JSON.stringify(pageItem), 'info');
|
||||
return pageItem;
|
||||
}
|
||||
|
||||
@@ -3018,7 +3018,7 @@ function findPageItem(searching: String): PageItem {
|
||||
return pageItem === undefined;
|
||||
});
|
||||
|
||||
if (Debug) log('findPageItem -> pageItem SubPage ' + pageItem, 'info');
|
||||
if (Debug) log('findPageItem -> pageItem SubPage ' + JSON.stringifyy(pageItem), 'info');
|
||||
|
||||
return pageItem;
|
||||
} catch (err) {
|
||||
@@ -5320,7 +5320,7 @@ function GenerateMediaPage(page: PageMedia): Payload[] {
|
||||
});
|
||||
}
|
||||
if (Debug) {
|
||||
log('GenerateMediaPage payload: ' + out_msgs, 'info');
|
||||
log('GenerateMediaPage payload: ' + JSON.stringify(out_msgs), 'info');
|
||||
}
|
||||
return out_msgs
|
||||
} catch (err) {
|
||||
@@ -5476,7 +5476,7 @@ function GenerateAlarmPage(page: PageAlarm): Payload[] {
|
||||
});
|
||||
|
||||
if (Debug) {
|
||||
log('GenerateAlarmPage payload: ' + out_msgs, 'info');
|
||||
log('GenerateAlarmPage payload: ' + JSON.stringify(out_msgs), 'info');
|
||||
}
|
||||
return out_msgs;
|
||||
}
|
||||
@@ -5556,7 +5556,7 @@ function GenerateUnlockPage(page: PageUnlock): Payload[] {
|
||||
});
|
||||
|
||||
if (Debug) {
|
||||
log('GenerateUnlockPage payload: ' + out_msgs, 'info');
|
||||
log('GenerateUnlockPage payload: ' + JSON.stringify(out_msgs), 'info');
|
||||
}
|
||||
return out_msgs;
|
||||
|
||||
@@ -5671,7 +5671,7 @@ function GenerateQRPage(page: PageQR): Payload[] {
|
||||
});
|
||||
|
||||
if (Debug) {
|
||||
log('GenerateQRPage payload: ' + out_msgs, 'info');
|
||||
log('GenerateQRPage payload: ' + JSON.stingify(out_msgs), 'info');
|
||||
}
|
||||
return out_msgs;
|
||||
|
||||
@@ -5816,7 +5816,7 @@ function GeneratePowerPage(page: PagePower): Payload[] {
|
||||
// 1st to 6th Item
|
||||
power_string
|
||||
});
|
||||
if (Debug) log('GeneratePowerPage payload: ' + out_msgs, 'info');
|
||||
if (Debug) log('GeneratePowerPage payload: ' + JSON.stringify(out_msgs), 'info');
|
||||
return out_msgs;
|
||||
|
||||
} catch (err) {
|
||||
@@ -5848,7 +5848,7 @@ function GenerateChartPage(page: PageChart): Payload[] {
|
||||
txt
|
||||
});
|
||||
|
||||
if (Debug) log('GenerateChartPage payload: ' + out_msgs, 'info');
|
||||
if (Debug) log('GenerateChartPage payload: ' + JSON.stringify(out_msgs), 'info');
|
||||
return out_msgs;
|
||||
|
||||
} catch (err) {
|
||||
@@ -7935,6 +7935,7 @@ function GenerateDetailPage(type: string, optional: string, pageItem: PageItem):
|
||||
}
|
||||
}
|
||||
}
|
||||
if (Debug) log('GenerateDetailPage -> payload: ' + JSON.stringify(out_msgs), 'info');
|
||||
return out_msgs;
|
||||
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user