Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
proddy committed Sep 19, 2021
1 parent 78b2efd commit 28bf7c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/emsdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,7 @@ void EMSdevice::publish_mqtt_ha_sensor() {
dv.ha |= DeviceValueHA::HA_DONE;
}
}

if (!ha_config_done()) {
bool ok = publish_ha_config();
ha_config_done(ok); // see if it worked
Expand Down
2 changes: 1 addition & 1 deletion src/emsesp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ void EMSESP::publish_response(std::shared_ptr<const Telegram> telegram) {
Mqtt::publish(F_(response), doc.as<JsonObject>());
}

// builds json with the detail of each value, for all specific device type or the dallas sensor
// builds json with the detail of each value, for a specific EMS device type or the dallas sensor
bool EMSESP::get_device_value_info(JsonObject & root, const char * cmd, const int8_t id, const uint8_t devicetype) {
for (const auto & emsdevice : emsdevices) {
if (emsdevice->device_type() == devicetype) {
Expand Down

0 comments on commit 28bf7c3

Please sign in to comment.