From 67f7cc53b3e422edf51370dffe763955ee2b9873 Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 12 Oct 2024 16:17:12 +0100 Subject: [PATCH] update sample test data --- mock-api/rest_server.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/mock-api/rest_server.ts b/mock-api/rest_server.ts index 2c6e2dd31..f8231c602 100644 --- a/mock-api/rest_server.ts +++ b/mock-api/rest_server.ts @@ -4434,15 +4434,15 @@ router // for testing only // add the custom entity data - dashboard_object = { - id: DeviceTypeUniqueID.CUSTOM_UID, // unique ID for custom entities - t: DeviceType.CUSTOM, - nodes: getDashboardEntityData(99) - }; - // only add to dashboard if we have values - if ((dashboard_object.nodes ?? []).length > 0) { - dashboard_data.push(dashboard_object); - } + // dashboard_object = { + // id: DeviceTypeUniqueID.CUSTOM_UID, // unique ID for custom entities + // t: DeviceType.CUSTOM, + // nodes: getDashboardEntityData(99) + // }; + // // only add to dashboard if we have values + // if ((dashboard_object.nodes ?? []).length > 0) { + // dashboard_data.push(dashboard_object); + // } let scheduler_data = emsesp_schedule.schedule.filter((item) => item.name); let scheduler_data2 = scheduler_data.map((item, index) => ({