offset to new dallas, remove sensors if disabled

This commit is contained in:
MichaelDvP
2022-08-30 17:36:03 +02:00
parent be4f49e96d
commit e79115d719
2 changed files with 11 additions and 7 deletions

View File

@@ -60,7 +60,10 @@ void AnalogSensor::reload() {
#if defined(EMSESP_STANDALONE)
analog_enabled_ = true; // for local offline testing
#endif
if (!analog_enabled_) {
sensors_.clear();
return;
}
// load the list of analog sensors from the customization service
// and store them locally and then activate them
EMSESP::webCustomizationService.read([&](WebCustomization & settings) {