This commit is contained in:
proddy
2024-09-30 10:08:50 +02:00
parent d5aac1789e
commit 30f491b434

View File

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