mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
cleanup, adapt comments, packages
This commit is contained in:
@@ -360,10 +360,9 @@ bool TemperatureSensor::command_commands(const char * value, const int8_t id, Js
|
||||
}
|
||||
|
||||
// creates JSON doc from values
|
||||
// returns false if there are no sensors
|
||||
// returns true if there are no sensors
|
||||
bool TemperatureSensor::command_info(const char * value, const int8_t id, JsonObject & output) {
|
||||
if (sensors_.empty()) {
|
||||
// output["message"] = "no entries";
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -390,7 +389,6 @@ bool TemperatureSensor::command_info(const char * value, const int8_t id, JsonOb
|
||||
// called from emsesp.cpp, similar to the emsdevice->get_value_info
|
||||
bool TemperatureSensor::get_value_info(JsonObject & output, const char * cmd, const int8_t id) {
|
||||
if (sensors_.empty()) {
|
||||
// output["message"] = "no entries";
|
||||
return true;
|
||||
}
|
||||
// make a copy of the string command for parsing
|
||||
|
||||
Reference in New Issue
Block a user