mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
update sample test data
This commit is contained in:
@@ -4434,15 +4434,15 @@ router
|
|||||||
// for testing only
|
// for testing only
|
||||||
|
|
||||||
// add the custom entity data
|
// add the custom entity data
|
||||||
dashboard_object = {
|
// dashboard_object = {
|
||||||
id: DeviceTypeUniqueID.CUSTOM_UID, // unique ID for custom entities
|
// id: DeviceTypeUniqueID.CUSTOM_UID, // unique ID for custom entities
|
||||||
t: DeviceType.CUSTOM,
|
// t: DeviceType.CUSTOM,
|
||||||
nodes: getDashboardEntityData(99)
|
// nodes: getDashboardEntityData(99)
|
||||||
};
|
// };
|
||||||
// only add to dashboard if we have values
|
// // only add to dashboard if we have values
|
||||||
if ((dashboard_object.nodes ?? []).length > 0) {
|
// if ((dashboard_object.nodes ?? []).length > 0) {
|
||||||
dashboard_data.push(dashboard_object);
|
// dashboard_data.push(dashboard_object);
|
||||||
}
|
// }
|
||||||
|
|
||||||
let scheduler_data = emsesp_schedule.schedule.filter((item) => item.name);
|
let scheduler_data = emsesp_schedule.schedule.filter((item) => item.name);
|
||||||
let scheduler_data2 = scheduler_data.map((item, index) => ({
|
let scheduler_data2 = scheduler_data.map((item, index) => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user