mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
update tests for temp sensors
This commit is contained in:
@@ -286,7 +286,7 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const
|
|||||||
emsesp::EMSESP::temperaturesensor_.test();
|
emsesp::EMSESP::temperaturesensor_.test();
|
||||||
|
|
||||||
// shell.invoke_command("show devices");
|
// shell.invoke_command("show devices");
|
||||||
shell.invoke_command("show values");
|
// shell.invoke_command("show values");
|
||||||
shell.invoke_command("call system allvalues");
|
shell.invoke_command("call system allvalues");
|
||||||
// shell.invoke_command("call system publish");
|
// shell.invoke_command("call system publish");
|
||||||
// shell.invoke_command("show mqtt");
|
// shell.invoke_command("show mqtt");
|
||||||
@@ -705,6 +705,7 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const
|
|||||||
if (command == "temperature") {
|
if (command == "temperature") {
|
||||||
shell.printfln("Testing adding Temperature sensor");
|
shell.printfln("Testing adding Temperature sensor");
|
||||||
emsesp::EMSESP::temperaturesensor_.test();
|
emsesp::EMSESP::temperaturesensor_.test();
|
||||||
|
shell.invoke_command("show values");
|
||||||
ok = true;
|
ok = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -58,7 +58,6 @@ namespace emsesp {
|
|||||||
// #define EMSESP_DEBUG_DEFAULT "custom_entities"
|
// #define EMSESP_DEBUG_DEFAULT "custom_entities"
|
||||||
// #define EMSESP_DEBUG_DEFAULT "heat_exchange"
|
// #define EMSESP_DEBUG_DEFAULT "heat_exchange"
|
||||||
|
|
||||||
|
|
||||||
class Test {
|
class Test {
|
||||||
public:
|
public:
|
||||||
static void run_test(uuid::console::Shell & shell, const std::string & command, const std::string & data = "");
|
static void run_test(uuid::console::Shell & shell, const std::string & command, const std::string & data = "");
|
||||||
|
|||||||
Reference in New Issue
Block a user