cleanup publishing

This commit is contained in:
MichaelDvP
2023-11-05 14:20:13 +01:00
parent d18fd4948c
commit adcc59642c
3 changed files with 4 additions and 6 deletions

View File

@@ -482,8 +482,6 @@ void EMSESP::publish_all(bool force) {
publish_device_values(EMSdevice::DeviceType::MIXER);
publish_device_values(EMSdevice::DeviceType::WATER);
publish_other_values(); // switch and heat pump, ...
webSchedulerService.publish();
webCustomEntityService.publish();
publish_sensor_values(true); // includes temperature and analog sensors
system_.send_heartbeat();
}
@@ -518,8 +516,6 @@ void EMSESP::publish_all_loop() {
break;
case 6:
publish_other_values(); // switch and heat pump
webSchedulerService.publish(true);
webCustomEntityService.publish(true);
break;
case 7:
publish_sensor_values(true, true);
@@ -611,6 +607,7 @@ void EMSESP::publish_other_values() {
// publish_device_values(EMSdevice::DeviceType::GATEWAY);
// publish_device_values(EMSdevice::DeviceType::CONNECT);
// publish_device_values(EMSdevice::DeviceType::GENERIC);
webSchedulerService.publish();
webCustomEntityService.publish();
}