mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
fix publish ha command
This commit is contained in:
@@ -349,6 +349,7 @@ void EMSESP::show_sensor_values(uuid::console::Shell & shell) {
|
||||
void EMSESP::publish_all(bool force) {
|
||||
if (force) {
|
||||
publish_all_idx_ = 1;
|
||||
reset_mqtt_ha();
|
||||
return;
|
||||
}
|
||||
if (Mqtt::connected()) {
|
||||
@@ -388,7 +389,7 @@ void EMSESP::publish_all_loop() {
|
||||
publish_other_values();
|
||||
break;
|
||||
case 6:
|
||||
publish_sensor_values(true);
|
||||
publish_sensor_values(true, true);
|
||||
break;
|
||||
case 7:
|
||||
system_.send_heartbeat();
|
||||
|
||||
Reference in New Issue
Block a user