mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
fix nested
This commit is contained in:
@@ -423,8 +423,7 @@ void EMSESP::publish_device_values(uint8_t device_type) {
|
||||
JsonObject json = doc.to<JsonObject>();
|
||||
bool need_publish = false;
|
||||
|
||||
bool nested = true; // TODO nested - get value from web settings
|
||||
// bool nested = false; // TODO nested - get value from web settings
|
||||
bool nested = Mqtt::nested_format();
|
||||
|
||||
for (const auto & emsdevice : emsdevices) {
|
||||
if (emsdevice && (emsdevice->device_type() == device_type)) {
|
||||
|
||||
Reference in New Issue
Block a user