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

Example of adding app as a mobile app integration #5

Merged
merged 17 commits into from
Nov 1, 2020

Conversation

kylepotts
Copy link
Collaborator

No description provided.

@kylepotts kylepotts marked this pull request as ready for review October 10, 2020 22:10
@RealOrangeOne RealOrangeOne linked an issue Oct 11, 2020 that may be closed by this pull request
src/config/mod.rs Outdated Show resolved Hide resolved
src/ha_api/mod.rs Outdated Show resolved Hide resolved
src/config/mod.rs Outdated Show resolved Hide resolved
src/config/mod.rs Outdated Show resolved Hide resolved
src/config/mod.rs Outdated Show resolved Hide resolved
src/config/mod.rs Outdated Show resolved Hide resolved
src/config/mod.rs Outdated Show resolved Hide resolved
src/main.rs Outdated Show resolved Hide resolved
src/config/mod.rs Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
@BCNelson
Copy link
Member

@kylepotts can you refactor to use https://crates.io/crates/ha_api

src/config.rs Outdated Show resolved Hide resolved
src/config.rs Outdated Show resolved Hide resolved
url = "2.1.1"
tungstenite = "0.11.1"
percent-encoding = "2.1.0"
ha_api = { git = "https://github.com/kylepotts/ha_api", branch = "kylep-add-as-mobile-app"}
Copy link
Member

Choose a reason for hiding this comment

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

Would be nice for this to represent the actual upstream once the PR is merged

Copy link
Member

Choose a reason for hiding this comment

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

I think that it is find for rapid prototyping. In the future we are going to require that changes be accepted in the library before they merged here

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

My personal preference would be that every commit, CI would generate a snapshot version of the library which the user could point to.

I imagine the process would be as such

1). PR against ha_api repo
2). PR against this repo pointing to snapshot version generated in 1
3). PR in 1 is merged, non snapshot version of the library is created
4) PR in 2 is updated with the non snapshot version

Copy link
Member

Choose a reason for hiding this comment

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

I don't love pushing to crates.io on every commit

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That is fine but we should standardize on some process. I'm fine with pointing to the git repo while were doing active development.

Copy link
Member

@BCNelson BCNelson Oct 17, 2020

Choose a reason for hiding this comment

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

I see it going like this. If you are making a change in halcyon that requires changes to api library. you will need to

  1. Open a PR on homeassistant-rs
  2. Have PR merged on homeassistent-rs
  3. Open PR on halcyon
  4. Have PR merged on halcyon

OR

  1. Open a PR on homeassistant-rs and hyalcyon (with api pionting at github branch)
  2. Have PR merged on homeassistent-rs
  3. Change api version to point at the new version pushed when homeassitant-rs PR is merged
  4. Have PR merged on halcyon

In general treating the two repos as two projects

@BCNelson BCNelson merged commit 0fa2dca into selfhostedshow:master Nov 1, 2020
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.

[FEATURE] Create HA API native integration
3 participants