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

Home Assistant 2021.6 support #10

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

sascha432
Copy link

This fork fixes an issue with the manifest

core-2021.6 required some changes. Currently it is working with core-2022.2.9

Copy link
Owner

@emcniece emcniece left a comment

Choose a reason for hiding this comment

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

Thank you so much for the changes! Got a few questions.

@@ -2,6 +2,10 @@

🚧 In development, but you can copy `sensor.py` down to your HASS install: just copy-paste `sensor.py` into a file name the same inside your HASS `custom_components/bchydro` directory. Edit `bchydro_username` and `bchydro_password` to match your BCHydro account.

## This fork fixes an issue with the manifest

core-2021.6 required some changes. Currently it is working with core-2022.2.9
Copy link
Owner

Choose a reason for hiding this comment

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

Will this comment be needed after this PR is merged?

"domain": "bchydro",
"name": "BC Hydro",
"documentation": "https://github.com/emcniece/hass-bchydro",
"documentation": "https://github.com/sascha432/hass-bchydro",
Copy link
Owner

Choose a reason for hiding this comment

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

This documentation link change is valid for the fork, but this pull request is merging it back into emcniece/hass-bchydro and as such the link probably shouldn't change.

Are you interested in maintainership? Maybe we could move this project to an organization instead of personal repositories.

Copy link
Author

Choose a reason for hiding this comment

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

You should change that to your repo, wasn't sure if you are still active. I think it is a good idea that you look over any code changes, this is just the manifest I modified.

manifest.json Outdated
"requirements": []
"requirements": [
"flake8==4.0.1",
"black==22.1.0"
Copy link
Owner

Choose a reason for hiding this comment

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

flake8 and black are dev requirements, not deploy requirements - this script doesn't need them in order to run normally. What does adding them here do? I can't recall if it's the dependencies or requirements that causes Home Assistant to download the packages when this integration gets installed.

If Home Assistant does install these requirements, I'd lean toward omitting them from the manifest. Are they needed here to support the new manifest?

Copy link
Author

Choose a reason for hiding this comment

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

In this case, there is no requirements. Home assistant installs any missing requirements during startup.

Here is the updated file

{ "version": "0.1.0", "domain": "bchydro", "name": "BC Hydro", "documentation": "https://github.com/emcniece/hass-bchydro", "dependencies": [], "codeowners": [], "requirements": [], "iot_class": "cloud_polling", "config_flow": false }

@emcniece
Copy link
Owner

emcniece commented Mar 8, 2022

I'm curious to hear about your 401 issue. It's possible that BCHydro has changed the login/auth process and it's causing our flow to fail.

@sascha432
Copy link
Author

sascha432 commented Mar 8, 2022 via email

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.

2 participants