mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
This commit is contained in:
@@ -209,7 +209,6 @@ bool WebStatusService::checkUpgrade(JsonObject root, std::string & latest_versio
|
|||||||
// action = allvalues
|
// action = allvalues
|
||||||
// output all the devices and the values
|
// output all the devices and the values
|
||||||
void WebStatusService::allvalues(JsonObject output) {
|
void WebStatusService::allvalues(JsonObject output) {
|
||||||
JsonDocument doc;
|
|
||||||
JsonObject device_output;
|
JsonObject device_output;
|
||||||
auto value = F_(values);
|
auto value = F_(values);
|
||||||
|
|
||||||
@@ -256,6 +255,7 @@ bool WebStatusService::exportData(JsonObject root, std::string & type) {
|
|||||||
} else if (type == "entities") {
|
} else if (type == "entities") {
|
||||||
System::extractSettings(EMSESP_CUSTOMENTITY_FILE, "Entities", root);
|
System::extractSettings(EMSESP_CUSTOMENTITY_FILE, "Entities", root);
|
||||||
} else if (type == "allvalues") {
|
} else if (type == "allvalues") {
|
||||||
|
root.clear(); // don't need the "type" key
|
||||||
allvalues(root);
|
allvalues(root);
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user