fix typo in loading dallas names

This commit is contained in:
MichaelDvP
2022-03-08 17:04:11 +01:00
parent 5a09de002a
commit 1413bb7fbf

View File

@@ -535,7 +535,7 @@ std::string DallasSensor::Sensor::name() const {
bool DallasSensor::Sensor::apply_customization() {
EMSESP::webCustomizationService.read([&](WebCustomization & settings) {
auto sensors = settings.sensorCustomizations;
if (sensors.empty()) {
if (!sensors.empty()) {
for (const auto & sensor : sensors) {
#if defined(EMSESP_DEBUG)
LOG_DEBUG(F("Loading customization for dallas sensor %s"), sensor.id_str.c_str());