mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-11 02:09:57 +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 {
|
} else {
|
||||||
snprintf_P(hc_name, sizeof(hc_name), PSTR("wwc%d"), hc_);
|
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);
|
output_hc = output.createNestedObject(hc_name);
|
||||||
} else {
|
} else {
|
||||||
output_hc = output;
|
output_hc = output;
|
||||||
|
|||||||
Reference in New Issue
Block a user