rename add_json()

This commit is contained in:
proddy
2021-07-29 16:52:33 +02:00
parent a8382dd6ce
commit 8f438e8045
4 changed files with 7 additions and 7 deletions

View File

@@ -986,18 +986,18 @@ bool EMSESP::add_device(const uint8_t device_id, const uint8_t product_id, std::
return true;
}
Command::add_returns_json(
Command::add_json(
device_type,
F_(info),
[device_type](const char * value, const int8_t id, JsonObject & json) { return command_info(device_type, json, id, true); },
F_(info_cmd));
Command::add_returns_json(
Command::add_json(
device_type,
F("info_short"),
[device_type](const char * value, const int8_t id, JsonObject & json) { return command_info(device_type, json, id, false); },
nullptr,
CommandFlag::HIDDEN); // this command is hidden
Command::add_returns_json(
Command::add_json(
device_type,
F_(commands),
[device_type](const char * value, const int8_t id, JsonObject & json) { return command_commands(device_type, json, id); },