load customization before loading devices

This commit is contained in:
proddy
2024-07-02 20:04:11 +02:00
parent 9a01feafd1
commit 259cba8aa9

View File

@@ -313,17 +313,20 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const
if (command == "general") { if (command == "general") {
shell.printfln("Testing adding a boiler, thermostat, all sensors, scheduler and custom entities..."); shell.printfln("Testing adding a boiler, thermostat, all sensors, scheduler and custom entities...");
test("general");
// setup fake data // setup fake data
EMSESP::webCustomizationService.test(); // set customizations EMSESP::webCustomizationService.test(); // set customizations - this will overwrite any settings in the file
// add devices
test("general");
EMSESP::temperaturesensor_.test(); // add temperature sensors EMSESP::temperaturesensor_.test(); // add temperature sensors
EMSESP::webSchedulerService.test(); // add scheduler items EMSESP::webSchedulerService.test(); // add scheduler items
EMSESP::webCustomEntityService.test(); // add custom entities EMSESP::webCustomEntityService.test(); // add custom entities
// shell.invoke_command("show devices"); shell.invoke_command("show devices");
// shell.invoke_command("show values"); // 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("call system publish");
// shell.invoke_command("show mqtt"); // shell.invoke_command("show mqtt");
ok = true; ok = true;