From f5aca6aa9344a9647aeb8c751edf1c5c30d814a6 Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 5 Feb 2022 09:51:16 +0100 Subject: [PATCH] fix test compiling --- src/test/test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/test.cpp b/src/test/test.cpp index f72a53dff..e185c0818 100644 --- a/src/test/test.cpp +++ b/src/test/test.cpp @@ -608,6 +608,7 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const } if (command == "api_values") { +#if defined(EMSESP_STANDALONE) shell.printfln(F("Testing API getting values")); Mqtt::ha_enabled(false); Mqtt::nested_format(1); @@ -626,6 +627,7 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const EMSESP::webAPIService.webAPIService_get(&request); request.url("/api/boiler/values"); EMSESP::webAPIService.webAPIService_get(&request); +#endif } if (command == "mqtt_post") {