From 259cba8aa98bf6a034f7cec79437bdcae1628159 Mon Sep 17 00:00:00 2001 From: proddy Date: Tue, 2 Jul 2024 20:04:11 +0200 Subject: [PATCH] load customization before loading devices --- src/test/test.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/test/test.cpp b/src/test/test.cpp index 16c190d77..648b24e47 100644 --- a/src/test/test.cpp +++ b/src/test/test.cpp @@ -313,17 +313,20 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const if (command == "general") { shell.printfln("Testing adding a boiler, thermostat, all sensors, scheduler and custom entities..."); - test("general"); // setup fake data - EMSESP::webCustomizationService.test(); // set customizations - EMSESP::temperaturesensor_.test(); // add temperature sensors - EMSESP::webSchedulerService.test(); // add scheduler items - EMSESP::webCustomEntityService.test(); // add custom entities + EMSESP::webCustomizationService.test(); // set customizations - this will overwrite any settings in the file - // shell.invoke_command("show devices"); + // add devices + test("general"); + + EMSESP::temperaturesensor_.test(); // add temperature sensors + EMSESP::webSchedulerService.test(); // add scheduler items + EMSESP::webCustomEntityService.test(); // add custom entities + + shell.invoke_command("show devices"); // shell.invoke_command("show values"); - shell.invoke_command("call system allvalues"); + // shell.invoke_command("call system allvalues"); // shell.invoke_command("call system publish"); // shell.invoke_command("show mqtt"); ok = true;