minor cleanups

This commit is contained in:
proddy
2020-08-31 21:39:48 +02:00
parent 97b256cd46
commit abfd1ae63a
3 changed files with 4 additions and 5 deletions

View File

@@ -317,7 +317,6 @@ void Thermostat::publish_values() {
}
// send this specific data using the thermostat_data topic
// if ((mqtt_format_ == MQTT_format::SINGLE) || (mqtt_format_ == MQTT_format::HA)) {
if (mqtt_format_ != MQTT_format::NESTED) {
Mqtt::publish("thermostat_data", doc);
rootThermostat = doc.to<JsonObject>(); // clear object