mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
don't publish dallas if there are none
This commit is contained in:
@@ -511,6 +511,10 @@ void EMSESP::publish_other_values() {
|
||||
}
|
||||
|
||||
void EMSESP::publish_sensor_values(const bool time, const bool force) {
|
||||
if (!dallas_enabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (dallassensor_.updated_values() || time || force) {
|
||||
dallassensor_.publish_values(force);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user