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

Bump wallbox to 0.4.9 #72978

Merged
merged 6 commits into from
Jun 6, 2022
Merged

Conversation

hesselonline
Copy link
Contributor

@hesselonline hesselonline commented Jun 3, 2022

Proposed change

I have updated the manifest.json to use a newer version of the pypi wallbox package. This is triggered by a request from @victor-falcon, who indicates that Wallbox has changed the auth part of its API (the old auth will stop working soon). This is thus needed to prevent future issues.

This is the upstream change:
cliviu74/wallbox@9ea6f11

Release notes: https://github.com/cliviu74/wallbox/releases/tag/0.4.9
Full compare: cliviu74/wallbox@0.4.4...0.4.9

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:

@hesselonline
Copy link
Contributor Author

@frenck @cdce8p very small change, we need to update the wallbox package dependency to prevent future issues. I hope one of you has time to give this a quick check. I want to prevent an issue in the future by changing the version now. I have tested the new dependency locally and everything works fine with this new version.

@epenet epenet changed the title Change upstream package version to newer version Bump wallbox to 0.4.9 Jun 3, 2022
@hesselonline
Copy link
Contributor Author

Noticed to late that my tests needed updating after the version bump (which I, looking at the tests, should have thought about earlier ;-))

@hesselonline
Copy link
Contributor Author

tests are still failing, but I think this is another issue?

@@ -47,7 +29,7 @@ async def test_wallbox_lock_class(hass: HomeAssistant) -> None:

with requests_mock.Mocker() as mock_request:
mock_request.get(
"https://api.wall-box.com/auth/token/user",
"https://user-api.wall-box.com/users/signin",
Copy link
Member

Choose a reason for hiding this comment

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

It would be better if the tests mocked the library instead and have the tests in the library test the endpoints.

Ideally Home Assistant doesn't know anything about the endpoints that the library uses

Copy link
Member

Choose a reason for hiding this comment

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

For a future PR

Comment on lines 7 to 9
"ssdp": [],
"zeroconf": [],
"homekit": {},
Copy link
Member

Choose a reason for hiding this comment

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

In a future PR, you can remove empty fields

Suggested change
"ssdp": [],
"zeroconf": [],
"homekit": {},

@bdraco bdraco added this to the 2022.6.3 milestone Jun 5, 2022
@bdraco bdraco merged commit 9ea504d into home-assistant:dev Jun 6, 2022
balloob pushed a commit that referenced this pull request Jun 6, 2022
@balloob balloob mentioned this pull request Jun 6, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jun 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants