From 02e5b6e975d41445fdf9053f9af94c680d0e62b9 Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 12 Feb 2022 15:04:06 +0100 Subject: [PATCH] extend test for nested mqtt --- src/test/test.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/test/test.cpp b/src/test/test.cpp index f72a53dff..7d5029b1c 100644 --- a/src/test/test.cpp +++ b/src/test/test.cpp @@ -173,8 +173,6 @@ bool Test::run_test(const char * command, int8_t id) { if (strcmp(command, "thermostat") == 0) { EMSESP::logger().info(F("Adding thermostat...")); - Mqtt::nested_format(1); // use nested - // Mqtt::nested_format(2); // single add_device(0x10, 192); // FW120 @@ -498,17 +496,19 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const if (command == "ha") { shell.printfln(F("Testing HA mqtt discovery")); - Mqtt::ha_enabled(true); - // Mqtt::nested_format(1); - Mqtt::nested_format(2); + // Mqtt::ha_enabled(true); + Mqtt::ha_enabled(false); - run_test("boiler"); + // Mqtt::nested_format(1); // is nested + Mqtt::nested_format(2); // not nested + + // run_test("boiler"); run_test("thermostat"); // run_test("solar"); // run_test("mixer"); shell.invoke_command("call system publish"); - shell.invoke_command("show mqtt"); + // shell.invoke_command("show mqtt"); // shell.invoke_command("call boiler fanwork"); // shell.invoke_command("call thermostat seltemp"); // sensor.thermostat_hc1_selected_room_temperature