mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
formatting
This commit is contained in:
@@ -1528,6 +1528,7 @@ bool EMSdevice::get_value_info(JsonObject output, const char * cmd, const int8_t
|
|||||||
if (cmd_s == Helpers::toLower(dv.short_name) && (tag <= 0 || tag == dv.tag)) {
|
if (cmd_s == Helpers::toLower(dv.short_name) && (tag <= 0 || tag == dv.tag)) {
|
||||||
get_value_json(output, dv);
|
get_value_json(output, dv);
|
||||||
// if we're filtering on an attribute, go find it
|
// if we're filtering on an attribute, go find it
|
||||||
|
// if we can't find it, maybe it exists but doesn't not have a value assigned yet
|
||||||
return Command::set_attribute(output, cmd_s, attribute_s);
|
return Command::set_attribute(output, cmd_s, attribute_s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -780,6 +780,7 @@ bool EMSESP::get_device_value_info(JsonObject root, const char * cmd, const int8
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if the EMS device was valid, but the cmd not found exit. it will be handled upstream.
|
// if the EMS device was valid, but the cmd not found exit. it will be handled upstream.
|
||||||
if (found_device) {
|
if (found_device) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user