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

Add Ohme integration #132574

Merged
merged 39 commits into from
Dec 14, 2024
Merged

Add Ohme integration #132574

merged 39 commits into from
Dec 14, 2024

Conversation

dan-r
Copy link
Contributor

@dan-r dan-r commented Dec 7, 2024

Proposed change

This PR adds a new integration for Ohme, a UK-based company that manufactures EV chargers (EVSE). I have been maintaining this integration as a custom integration for the past year. Before submitting this I have moved the API logic to ohmepy.

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

  • 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.

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.

To help with the load of incoming pull requests:

Copy link

@home-assistant home-assistant bot left a comment

Choose a reason for hiding this comment

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

Hi @dan-r

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

Copy link

@home-assistant home-assistant bot left a comment

Choose a reason for hiding this comment

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

@dan-r dan-r marked this pull request as ready for review December 7, 2024 21:24
@dan-r dan-r requested a review from a team as a code owner December 7, 2024 21:24
script/hassfest/quality_scale.py Outdated Show resolved Hide resolved
@home-assistant home-assistant bot marked this pull request as draft December 7, 2024 23:07
@home-assistant
Copy link

home-assistant bot commented Dec 7, 2024

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.

@dan-r dan-r marked this pull request as ready for review December 13, 2024 15:48
@home-assistant home-assistant bot requested a review from zweckj December 13, 2024 15:48
Copy link
Member

@zweckj zweckj left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM! 👍

homeassistant/components/ohme/__init__.py Outdated Show resolved Hide resolved
homeassistant/components/ohme/coordinator.py Outdated Show resolved Hide resolved
homeassistant/components/ohme/coordinator.py Outdated Show resolved Hide resolved
homeassistant/components/ohme/coordinator.py Outdated Show resolved Hide resolved
homeassistant/components/ohme/coordinator.py Outdated Show resolved Hide resolved
tests/components/ohme/test_config_flow.py Show resolved Hide resolved
tests/components/ohme/test_config_flow.py Outdated Show resolved Hide resolved
tests/components/ohme/test_config_flow.py Outdated Show resolved Hide resolved
tests/components/ohme/test_sensor.py Outdated Show resolved Hide resolved
tests/components/ohme/test_sensor.py Show resolved Hide resolved
@home-assistant home-assistant bot marked this pull request as draft December 13, 2024 20:30
@dan-r dan-r marked this pull request as ready for review December 14, 2024 13:58
@home-assistant home-assistant bot requested review from zweckj and joostlek December 14, 2024 13:58
homeassistant/components/ohme/sensor.py Outdated Show resolved Hide resolved
homeassistant/components/ohme/sensor.py Outdated Show resolved Hide resolved
homeassistant/components/ohme/sensor.py Outdated Show resolved Hide resolved
"password": "[%key:common::config_flow::data::password%]"
},
"data_description": {
"email": "Enter the email address associated with your Ohme account. This should not be a social account (eg. Google).",
Copy link
Member

Choose a reason for hiding this comment

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

Instead of explaining this in the data_description, I would just move the social part to the description of the step itself.

"This has to be an Ohme account. If you signed up with Ohme with a third party account like Google, please reset your password via Ohme, so you can create your own account"

I am probably cutting edges, but let's make it a little more descriptive. Bonus points if we can have a separate place on the integration docs where we explain this

@home-assistant home-assistant bot marked this pull request as draft December 14, 2024 15:37
@joostlek joostlek marked this pull request as ready for review December 14, 2024 17:12
@home-assistant home-assistant bot requested a review from joostlek December 14, 2024 17:12
@joostlek joostlek merged commit 9e2a3ea into home-assistant:dev Dec 14, 2024
65 checks passed
@dan-r dan-r deleted the ohme branch December 14, 2024 22:33
zweckj pushed a commit to zweckj/home-assistant-core that referenced this pull request Dec 15, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Dec 15, 2024
@joostlek
Copy link
Member

@dan-r If you use discord, can you please send me a message?

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.

4 participants