mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-09 01:09:51 +03:00
mqtt HA format mixing
This commit is contained in:
@@ -239,7 +239,7 @@ bool Mixing::export_values(uint8_t mqtt_format, JsonObject & output) {
|
||||
}
|
||||
} else {
|
||||
snprintf_P(hc_name, sizeof(hc_name), PSTR("wwc%d"), hc_);
|
||||
if (mqtt_format == Mqtt::Format::NESTED) {
|
||||
if (mqtt_format == Mqtt::Format::NESTED || mqtt_format == Mqtt::Format::HA) {
|
||||
output_hc = output.createNestedObject(hc_name);
|
||||
} else {
|
||||
output_hc = output;
|
||||
|
||||
Reference in New Issue
Block a user