mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-06-13 19:36:26 +03:00
use EMSdevice::DeviceType::SYSTEM
This commit is contained in:
@@ -671,7 +671,7 @@ void AnalogSensor::publish_values(const bool force) {
|
||||
publish_sensor(sensor);
|
||||
}
|
||||
return;
|
||||
} else if (!EMSESP::mqtt_.get_publish_onchange(0)) {
|
||||
} else if (!EMSESP::mqtt_.get_publish_onchange(EMSdevice::DeviceType::SYSTEM)) {
|
||||
return; // wait for first time period
|
||||
}
|
||||
}
|
||||
|
||||
@@ -489,7 +489,7 @@ void TemperatureSensor::publish_values(const bool force) {
|
||||
publish_sensor(sensor);
|
||||
}
|
||||
return;
|
||||
} else if (!EMSESP::mqtt_.get_publish_onchange(0)) {
|
||||
} else if (!EMSESP::mqtt_.get_publish_onchange(EMSdevice::DeviceType::SYSTEM)) {
|
||||
return; // wait for first time period
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user