From 1413bb7fbf3fb6a74b091f12fd9118bcb9080b08 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Tue, 8 Mar 2022 17:04:11 +0100 Subject: [PATCH] fix typo in loading dallas names --- src/dallassensor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dallassensor.cpp b/src/dallassensor.cpp index a71c79a3d..3d4be1a15 100644 --- a/src/dallassensor.cpp +++ b/src/dallassensor.cpp @@ -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());