Skip to content

Raise Sofar to the silver quality scale - #180292

Open
darkrain-nl wants to merge 6 commits into
home-assistant:devfrom
darkrain-nl:sofar-silver
Open

Raise Sofar to the silver quality scale#180292
darkrain-nl wants to merge 6 commits into
home-assistant:devfrom
darkrain-nl:sofar-silver

Conversation

@darkrain-nl

@darkrain-nl darkrain-nl commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Proposed change

Raise Sofar to silver on the quality scale.

Needs #180306 to be merged first.

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Deprecation (breaking change to happen in the future)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

Checklist

  • I understand the code I am submitting and can explain how it works.
  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • I have followed the perfect PR recommendations
  • The code has been formatted using Ruff (ruff format homeassistant tests)
  • Tests have been added to verify that the new code works.
  • Any generated code has been carefully reviewed for correctness and compliance with project standards.

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • For the updated dependencies a diff between library versions and ideally a link to the changelog/release notes is added to the PR description.

To help with the load of incoming pull requests:

Cover the coordinator's four uncovered failure paths: an all-failed
poll, an empty report, a component that answers the retry, and a link
that dies during the retry. coordinator.py goes from 92% to 100%,
which is what test-coverage was already claiming in quality_scale.yaml.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Raises the Sofar integration to Silver quality status by completing coordinator failure-path coverage.

Changes:

  • Adds tests for poll, report, retry, and connection failures.
  • Updates the integration’s quality-scale declaration to Silver.
  • Silver requirements are satisfied.

Reviewed changes

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

File Description
tests/components/sofar/test_coordinator.py Adds coordinator failure and recovery tests.
homeassistant/components/sofar/manifest.json Declares Silver quality status.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI review requested due to automatic review settings August 26, 2026 15:03
Comment thread tests/components/sofar/test_coordinator.py Outdated
Comment thread homeassistant/components/sofar/manifest.json
@home-assistant
home-assistant Bot marked this pull request as draft August 26, 2026 15:25
@home-assistant

Copy link
Copy Markdown
Contributor

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI review requested due to automatic review settings August 26, 2026 15:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread homeassistant/components/sofar/manifest.json
@darkrain-nl
darkrain-nl marked this pull request as ready for review August 26, 2026 17:02
@home-assistant
home-assistant Bot requested a review from joostlek August 26, 2026 17:02
@darkrain-nl

Copy link
Copy Markdown
Contributor Author

PR #180306 is now merged.

# Conflicts:
#	homeassistant/components/sofar/manifest.json
Copilot AI review requested due to automatic review settings August 26, 2026 18:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants