-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Nello.io lock support #8957
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
Nello.io lock support #8957
Conversation
@pschmitt, thanks for your PR! By analyzing the history of the files in this pull request, we identified @balloob, @fabaff and @robbiet480 to be potential reviewers. |
# Save the activity history so that we don't trigger an event twice | ||
self._activity = activity | ||
|
||
def unlock(self, **kwargs): |
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 method is a little confusing. Isn't self._locked
always going to be reset to True
before this method exits?
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.
Yes. See 55ef048
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.
Leave a comment
* Initial Nello.io lock support * Log an error when unlocking failed * Make the lock's state always locked
Description:
Nello.io are cloud-based intercom solutions that allow to buzz open the door in apartment buildings and receive notifications when someone rings the bell.
This here presents a new
lock
device that does not implement thelock
function ;)It also fires a
nello_bell_ring
event when the bell has been rung.Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.io#3173
Example entry for
configuration.yaml
(if applicable):Checklist:
If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
tox
run successfully. Your PR cannot be merged unless tests passREQUIREMENTS
variable ([example][ex-requir]).requirements_all.txt
by runningscript/gen_requirements_all.py
..coveragerc
.