formatting

This commit is contained in:
proddy
2025-03-13 22:46:15 +01:00
parent b1eedcb1d8
commit f5925dbb3b
2 changed files with 2 additions and 0 deletions

View File

@@ -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);
} }
} }

View File

@@ -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;