From 2f706b33fa56ae390f2e1c256900f47343cb5b0b Mon Sep 17 00:00:00 2001 From: proddy Date: Mon, 10 Oct 2022 20:12:35 +0200 Subject: [PATCH] add test for modes --- src/test/test.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/test/test.cpp b/src/test/test.cpp index be722d6df..f791b5f9d 100644 --- a/src/test/test.cpp +++ b/src/test/test.cpp @@ -246,6 +246,14 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const shell.invoke_command("show mqtt"); } + if (command == "modes") { + shell.printfln("Testing thermostat modes..."); + run_test("general"); + shell.invoke_command("call thermostat mode auto"); + shell.invoke_command("call thermostat mode Manuell"); // DE + shell.invoke_command("call thermostat mode 1"); + } + if (command == "render") { shell.printfln("Testing render...");