formatting

This commit is contained in:
Proddy
2022-07-20 12:02:32 +02:00
parent 69568abb8a
commit d707e92d59
3 changed files with 2 additions and 4 deletions

View File

@@ -3,4 +3,3 @@
# Firmware Installation # Firmware Installation
Follow the instructions in the [documentation](https://emsesp.github.io/docs) on how to install the firmware binaries in the Assets below. Follow the instructions in the [documentation](https://emsesp.github.io/docs) on how to install the firmware binaries in the Assets below.

View File

@@ -5,4 +5,3 @@ This is a snapshot of the current "beta" development code and firmware binaries
# Firmware Installation # Firmware Installation
Follow the instructions in the [documentation](https://emsesp.github.io/docs) on how to install the firmware binaries in the Assets below. Follow the instructions in the [documentation](https://emsesp.github.io/docs) on how to install the firmware binaries in the Assets below.

View File

@@ -411,10 +411,10 @@ void AnalogSensor::publish_values(const bool force) {
snprintf(str, sizeof(str), "analogsensor_%d", sensor.gpio()); snprintf(str, sizeof(str), "analogsensor_%d", sensor.gpio());
config["uniq_id"] = str; config["uniq_id"] = str;
if (sensor.uom() != DeviceValueUOM::NONE) { if (sensor.uom() != DeviceValueUOM::NONE) {
config["unit_of_meas"] = EMSdevice::uom_to_string(sensor.uom()); config["unit_of_meas"] = EMSdevice::uom_to_string(sensor.uom());
} }
JsonObject dev = config.createNestedObject("dev"); JsonObject dev = config.createNestedObject("dev");
JsonArray ids = dev.createNestedArray("ids"); JsonArray ids = dev.createNestedArray("ids");