Merge remote-tracking branch 'origin/jetbrains-junie/issue-2-run-75eae3ea-54e4-40a5-bf5b-51361fd684d8' into jetbrains-junie/issue-2-run-75eae3ea-54e4-40a5-bf5b-51361fd684d8

# Conflicts:
#	src/esp_sensors/mqtt.py
#	src/main.py
This commit is contained in:
OMGeeky
2025-06-07 14:26:39 +02:00

View File

@@ -204,12 +204,9 @@ def main():
print("MQTT client disconnected")
except Exception as e:
print(f"Error disconnecting MQTT client: {e}")
else:
print("MQTT client not connected, skipping publish")
display.set_status("MQTT not connected")
# Save the updated reconnection state to the configuration
config.save_config()
if mqtt_client:
# Save the updated reconnection state to the configuration
config.save_config()
else:
print("MQTT is disabled, not publishing data")