diff --git a/src/core/analogsensor.cpp b/src/core/analogsensor.cpp index 5f474fa30..b91f4772f 100644 --- a/src/core/analogsensor.cpp +++ b/src/core/analogsensor.cpp @@ -534,11 +534,7 @@ bool AnalogSensor::update(uint8_t gpio, const char * org_name, double offset, do bool found_sensor = false; EMSESP::webCustomizationService.update([&](WebCustomization & settings) { for (auto & AnalogCustomization : settings.analogCustomizations) { - if (AnalogCustomization.type == AnalogType::COUNTER - || (AnalogCustomization.type >= AnalogType::DIGITAL_OUT && AnalogCustomization.type <= AnalogType::PWM_2) - || AnalogCustomization.type == AnalogType::RGB || AnalogCustomization.type == AnalogType::PULSE) { - Command::erase_command(EMSdevice::DeviceType::ANALOGSENSOR, AnalogCustomization.name); - } + Command::erase_command(EMSdevice::DeviceType::ANALOGSENSOR, AnalogCustomization.name); if (AnalogCustomization.gpio == gpio) { found_sensor = true; // found the record // see if it's marked for deletion