mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 16:59:50 +03:00
test for NO_VALUE in prep for Michael's change
This commit is contained in:
@@ -383,8 +383,8 @@ std::string commands(std::string & expr, bool quotes = true) {
|
|||||||
|
|
||||||
auto return_code = emsesp::Command::process(cmd_s.c_str(), true, input, output);
|
auto return_code = emsesp::Command::process(cmd_s.c_str(), true, input, output);
|
||||||
// check for no value (entity is valid but has no value set)
|
// check for no value (entity is valid but has no value set)
|
||||||
if (return_code == emsesp::CommandRet::NO_VALUE) {
|
if (return_code != emsesp::CommandRet::OK && return_code != emsesp::CommandRet::NO_VALUE) {
|
||||||
return expr = ""; // just ignore for now
|
return expr = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (output["api_data"].is<std::string>()) {
|
if (output["api_data"].is<std::string>()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user