-
Notifications
You must be signed in to change notification settings - Fork 6
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
Creating logic to update lock codes #222
Conversation
39744d3
to
d8f10cf
Compare
pre-commit.ci autofix |
I am not sure why It says Merging blocked. LMK what I need to do to fix this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This logic needs to change.
- The update should only happen if the code generator is the date_based generator
- You shouldn't be directly manipulating the code, but instead causing the sensor to fire and
async_fire_clear_code
on the specific slot. That will cause the slot to be cleared in Keymaster and then on the next refresh of the sensor it will be refilled with an updated door code.
@shwarnock the merge block is because you did not sign your changes. See https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification If you don't have a GPG key to use, then see near the bottom the information about SSH based signing. Please note, your current changes are going to run afoul of pre-commit expectations around commit messages |
BTW if you're wondering why I've got such strict requirements on the repo it's because my day job is working with OSS developers. In particular, around coding best practices as well as CI tooling so I maintain the same level of expectations of my own coding projects ;) |
I did add an SSH key to my account. Does it specifically need to be GPG? |
856e5cb
to
df0a517
Compare
Sorry, it has been a long time since I have used git. I have been in P4 for the past 10 years and only rarely come back to Git. I added a GPG key to my account and used Really excited to get this all sorted out! I would love to help out with this integration more. I already have 2 STRs that are using this integration with more to come in the coming months! |
pre-commit.ci autofix |
Starting with Home Assistant 2024.7 the async_forward_entry_setups method must be awaited or we get a deprecation notice. Issue: Fixes tykeal#211 Signed-off-by: Andrew Grimberg <tykeal@bardicgrove.org> Signed-off-by: shwarnock <shwarnock89@gmail.com>
Signed-off-by: Shawn Warnock <shwarnock89@gmail.com> Signed-off-by: shwarnock <shwarnock89@gmail.com>
Signed-off-by: shwarnock <shwarnock89@gmail.com>
Signed-off-by: shwarnock <shwarnock89@gmail.com>
Signed-off-by: shwarnock <shwarnock89@gmail.com>
Signed-off-by: shwarnock <shwarnock89@gmail.com>
bab2ec0
to
5283883
Compare
@shwarnock ok... it looks like you're fumbling around a little bit here given what I'm seeing on all the commits (don't worry, I understand, especially if you don't use git on a regular basis!) First, let's take care of your signing issue: that's the section specifically about SSH based signing of commits. Make sure you upload the public key for your SSH key as a signing key per that documentation and then also make sure you configured As an aside, I just reread that you used a GPG key, great, but you do need to upload the public side of the key to your GitHub account so GitHub knows that the key is actually yours. Now, on to all of your commits. Looks like you somehow grabbed the last commit I made and added a DCO (signed-off-by) line to it, that's going to break all sorts of things since that commit is already merged! So, here's what I would do, the following assumes that you have this repo (mine) configured as an
General house keeping tip for you. This repository uses pre-commit to make sure that commits are following good practices, if you have not done so, then I would suggest installing pre-commit and in the repo doing the following:
Doing this once before you start making changes will make sure that all of the pre-commit related CI jobs will pass as you won't be able to get your change committed locally until you pass them ;) With that all out of the way, let's talk about the actual code you're trying to change.
Which will rewrite your current PR with all of the changes you've made and should also get around the issue I saw where you modified an already merge change! |
Thanks for the detailed reply! I actually just created a new PR and branch that is less poluted: |
No description provided.