code formatting changes

This commit is contained in:
proddy
2020-09-07 11:59:56 +02:00
parent 633c6c9e58
commit 9d828ba783

View File

@@ -94,11 +94,13 @@ void Boiler::register_mqtt_ha_config() {
/* /*
* not finished yet - see https://github.com/proddy/EMS-ESP/issues/288 * not finished yet - see https://github.com/proddy/EMS-ESP/issues/288
doc["name"] = "boiler"; doc["name"] = "boiler";
doc["uniq_id"] = "boiler"; doc["uniq_id"] = "boiler";
// Mqtt::publish(topic); // empty payload, this remove any previous config sent to HA // Mqtt::publish(topic); // empty payload, this remove any previous config sent to HA
Mqtt::publish("homeassistant/sensor/ems-esp/boiler/config", doc, true); // publish the config payload with retain flag Mqtt::publish("homeassistant/sensor/ems-esp/boiler/config", doc, true); // publish the config payload with retain flag
*/ */
} }
@@ -131,7 +133,6 @@ void Boiler::device_info_web(JsonArray & root) {
render_value_json(root, "", F("Warm Water set temperature"), wWSetTmp_, F_(degrees)); render_value_json(root, "", F("Warm Water set temperature"), wWSetTmp_, F_(degrees));
render_value_json(root, "", F("Warm Water current temperature (intern)"), wWCurTmp_, F_(degrees), 10); render_value_json(root, "", F("Warm Water current temperature (intern)"), wWCurTmp_, F_(degrees), 10);
render_value_json(root, "", F("Warm Water current temperature (extern)"), wWCurTmp2_, F_(degrees), 10); render_value_json(root, "", F("Warm Water current temperature (extern)"), wWCurTmp2_, F_(degrees), 10);
render_value_json(root, "", F("Pump modulation"), pumpMod_, F_(percent)); render_value_json(root, "", F("Pump modulation"), pumpMod_, F_(percent));
render_value_json(root, "", F("Heat Pump modulation"), pumpMod2_, F_(percent)); render_value_json(root, "", F("Heat Pump modulation"), pumpMod2_, F_(percent));
} }