Skip to content

Add device_info and entity_category to Vallox#67353

Merged
bdraco merged 4 commits intohome-assistant:devfrom
andre-richter:vallox_device_registry
May 9, 2022
Merged

Add device_info and entity_category to Vallox#67353
bdraco merged 4 commits intohome-assistant:devfrom
andre-richter:vallox_device_registry

Conversation

@andre-richter
Copy link
Copy Markdown
Contributor

Breaking change

Proposed change

Adds Device Registry and entity categorization support.

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)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:
  • Link to documentation pull request:

Checklist

  • 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
  • The code has been formatted using Black (black --fast homeassistant tests)
  • Tests have been added to verify that the new code works.

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 link to the changelog, or at minimum a diff between library versions is added to the PR description.
  • Untested files have been added to .coveragerc.

The integration reached or maintains the following Integration Quality Scale:

  • No score or internal
  • 🥈 Silver
  • 🥇 Gold
  • 🏆 Platinum

To help with the load of incoming pull requests:

@probot-home-assistant
Copy link
Copy Markdown

Hey there @slovdahl, @viiru-, mind taking a look at this pull request as it has been labeled with an integration (vallox) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)

@andre-richter andre-richter marked this pull request as draft February 27, 2022 22:16
@andre-richter
Copy link
Copy Markdown
Contributor Author

@slovdahl could you give me a quick primer on how to run all the vallox tests locally?

@slovdahl
Copy link
Copy Markdown
Contributor

@slovdahl could you give me a quick primer on how to run all the vallox tests locally?

Sure! Are you using the devcontainers setup? In that case, run this:

pytest tests/components/vallox

And if you want to check the test coverage percentages, use this:

pytest --cov=homeassistant/components/vallox/ --cov-report term-missing -- tests/components/vallox/

@slovdahl
Copy link
Copy Markdown
Contributor

Tested the changes briefly locally, seeems to work fine 👍

@andre-richter
Copy link
Copy Markdown
Contributor Author

Thanks! Need to fix the Tests sometime later, hopefully today.

@andre-richter andre-richter marked this pull request as ready for review February 28, 2022 21:06
@andre-richter andre-richter marked this pull request as draft March 1, 2022 20:58
@andre-richter andre-richter marked this pull request as ready for review March 1, 2022 22:03
Copy link
Copy Markdown
Contributor

@slovdahl slovdahl left a comment

Choose a reason for hiding this comment

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

Thanks, nice improvement overall! I really like getting the direct link to the Vallox unit's web UI 🙂

@frenck frenck added the smash Indicator this PR is close to finish for merging or closing label Mar 3, 2022
@andre-richter
Copy link
Copy Markdown
Contributor Author

@iMicknl I would like to defer the changes to the isinstance() checks to a follow up PR, since we currently have this pattern in other parts of ValloxState as well that are not touched by this PR.

Then we can do it all at once (or tackle it in the 3rd party library directly), and not mix it with the actual scope of this PR.

@iMicknl
Copy link
Copy Markdown
Member

iMicknl commented Mar 9, 2022

@iMicknl I would like to defer the changes to the isinstance() checks to a follow up PR, since we currently have this pattern in other parts of ValloxState as well that are not touched by this PR.

Then we can do it all at once (or tackle it in the 3rd party library directly), and not mix it with the actual scope of this PR.

Makes sense! I didn't look at the other parts of this component. For now; a quick fix could be to just use cast() instead of instanceof.

@andre-richter
Copy link
Copy Markdown
Contributor Author

andre-richter commented Apr 3, 2022

Did a major rebase because a few conflicting PRs went in in the meantime. @slovdahl would be great if you could do a smoke test again as well 🙏

Copy link
Copy Markdown
Contributor

@slovdahl slovdahl left a comment

Choose a reason for hiding this comment

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

Works like a charm 👍

@bdraco bdraco merged commit 3a00c95 into home-assistant:dev May 9, 2022
@andre-richter andre-richter deleted the vallox_device_registry branch May 9, 2022 22:05
@github-actions github-actions bot locked and limited conversation to collaborators May 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

by-code-owner cla-signed integration: vallox new-feature smash Indicator this PR is close to finish for merging or closing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants