mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
formatting
This commit is contained in:
@@ -986,6 +986,7 @@ void EMSdevice::publish_mqtt_ha_sensor() {
|
|||||||
dv.ha |= DeviceValueHA::HA_DONE;
|
dv.ha |= DeviceValueHA::HA_DONE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ha_config_done()) {
|
if (!ha_config_done()) {
|
||||||
bool ok = publish_ha_config();
|
bool ok = publish_ha_config();
|
||||||
ha_config_done(ok); // see if it worked
|
ha_config_done(ok); // see if it worked
|
||||||
|
|||||||
@@ -568,7 +568,7 @@ void EMSESP::publish_response(std::shared_ptr<const Telegram> telegram) {
|
|||||||
Mqtt::publish(F_(response), doc.as<JsonObject>());
|
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) {
|
bool EMSESP::get_device_value_info(JsonObject & root, const char * cmd, const int8_t id, const uint8_t devicetype) {
|
||||||
for (const auto & emsdevice : emsdevices) {
|
for (const auto & emsdevice : emsdevices) {
|
||||||
if (emsdevice->device_type() == devicetype) {
|
if (emsdevice->device_type() == devicetype) {
|
||||||
|
|||||||
Reference in New Issue
Block a user