mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
fix for non-nested thermostat #738
This commit is contained in:
@@ -414,13 +414,19 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd) {
|
||||
|
||||
if (command == "mqtt_nested") {
|
||||
shell.printfln(F("Testing nested MQTT"));
|
||||
Mqtt::ha_enabled(false); // turn off HA Discovery
|
||||
Mqtt::ha_enabled(false); // turn off HA Discovery to stop the chatter
|
||||
|
||||
run_test("boiler");
|
||||
run_test("thermostat");
|
||||
run_test("solar");
|
||||
run_test("mixer");
|
||||
|
||||
// first with nested
|
||||
Mqtt::nested_format(true);
|
||||
shell.invoke_command("call system publish");
|
||||
|
||||
// then without nested
|
||||
Mqtt::nested_format(false);
|
||||
shell.invoke_command("call system publish");
|
||||
shell.invoke_command("show mqtt");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user