mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 00:39:50 +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>();
|
JsonObject json = doc.to<JsonObject>();
|
||||||
bool need_publish = false;
|
bool need_publish = false;
|
||||||
|
|
||||||
bool nested = true; // TODO nested - get value from web settings
|
bool nested = Mqtt::nested_format();
|
||||||
// bool nested = false; // TODO nested - get value from web settings
|
|
||||||
|
|
||||||
for (const auto & emsdevice : emsdevices) {
|
for (const auto & emsdevice : emsdevices) {
|
||||||
if (emsdevice && (emsdevice->device_type() == device_type)) {
|
if (emsdevice && (emsdevice->device_type() == device_type)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user