mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-10 09:49:54 +03:00
some refactoring
This commit is contained in:
@@ -1534,7 +1534,7 @@ bool EMSdevice::get_value_info(JsonObject output, const char * cmd, const int8_t
|
||||
get_value_json(output, dv);
|
||||
// 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::get_attribute(output, cmd_s, attribute_s);
|
||||
}
|
||||
}
|
||||
return false; // not found, but don't return a message error yet
|
||||
|
||||
Reference in New Issue
Block a user