Skip to content

Develop#21

Merged
hermanops merged 6 commits intomasterfrom
develop
Feb 20, 2026
Merged

Develop#21
hermanops merged 6 commits intomasterfrom
develop

Conversation

@hermanops
Copy link
Owner

No description provided.

Copilot AI review requested due to automatic review settings February 20, 2026 02:07
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces logging infrastructure and refines the development workflow configuration. It replaces print-based error reporting with proper logging in the Growatt inverter module and updates Dependabot to target a develop branch with a more conservative update schedule.

Changes:

  • Replaced print statements with structured logging in growatt.py for better production-grade error handling
  • Removed unused datetime import from growatt.py
  • Reconfigured Dependabot to target develop branch with weekly updates, reduced PR limits, and added automation labels

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
growatt.py Introduces logging module, removes unused datetime import, replaces print statements with logger.warning() calls for error handling, removes trailing comma from StateCodes dictionary
.github/dependabot.yml Reconfigures Dependabot to target develop branch with weekly schedule, reduced PR limit, added labels and commit prefix, removed reviewer assignments and version ignores

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

1: 'Normal',
2: 'Discharging',
3: 'Fault',
3: 'Fault'
Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

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

The trailing comma was removed from the last entry in StateCodes, but ErrorCodes dictionary on line 39 still has a trailing comma. For consistency, both dictionaries should follow the same convention. Python best practice recommends including trailing commas in multi-line dictionary definitions to make diffs cleaner when adding new entries.

Suggested change
3: 'Fault'
3: 'Fault',

Copilot uses AI. Check for mistakes.
@hermanops hermanops merged commit eba23ba into master Feb 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants