Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REDO] Update espota.py #8797

Merged
merged 3 commits into from
Oct 25, 2023
Merged

[REDO] Update espota.py #8797

merged 3 commits into from
Oct 25, 2023

Conversation

me-no-dev
Copy link
Member

This PR is a redo of #8239

Replaced the deprecated optparse module with argparse.
Adjusted the code style to conform to PEP 8 guidelines.
Used with statement for file handling to ensure proper resource cleanup.
Incorporated exception handling to catch and handle potential errors.
Made variable names more descriptive for better readability.
Introduced constants for better code maintainability.

rowingdude and others added 2 commits October 23, 2023 16:17
Changes documented in comment section of code.
@me-no-dev
Copy link
Member Author

@SuGlider please try this on Windows
@P-R-O-C-H-Y you are on Mac
@lucasssvaz could you test Linux?

this example should do

@me-no-dev me-no-dev added this to the 3.0.0 milestone Oct 23, 2023
@P-R-O-C-H-Y
Copy link
Member

Tested on MacOS. Worked well.

Copy link
Collaborator

@lucasssvaz lucasssvaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Works fine on Linux (OpenSUSE Leap 15.5)

@me-no-dev
Copy link
Member Author

@SuGlider could you please test on Windows?

@SuGlider
Copy link
Collaborator

@SuGlider could you please test on Windows?

Test done. All fine!

@SuGlider SuGlider self-requested a review October 25, 2023 11:42
Copy link
Collaborator

@SuGlider SuGlider left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All Fine! Tested with Windows 11 / CMD.

@me-no-dev me-no-dev merged commit a3d8de6 into master Oct 25, 2023
38 checks passed
@me-no-dev me-no-dev deleted the update/espota_py branch October 25, 2023 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

5 participants