fix test compiling

This commit is contained in:
proddy
2022-02-05 09:51:16 +01:00
parent 3d1a050e22
commit f5aca6aa93

View File

@@ -608,6 +608,7 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const
} }
if (command == "api_values") { if (command == "api_values") {
#if defined(EMSESP_STANDALONE)
shell.printfln(F("Testing API getting values")); shell.printfln(F("Testing API getting values"));
Mqtt::ha_enabled(false); Mqtt::ha_enabled(false);
Mqtt::nested_format(1); 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); EMSESP::webAPIService.webAPIService_get(&request);
request.url("/api/boiler/values"); request.url("/api/boiler/values");
EMSESP::webAPIService.webAPIService_get(&request); EMSESP::webAPIService.webAPIService_get(&request);
#endif
} }
if (command == "mqtt_post") { if (command == "mqtt_post") {