8000 Nello.io lock support by pschmitt · Pull Request #8957 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 3 commits into from
Aug 14, 2017
Merged

Nello.io lock support #8957

merged 3 commits into from
Aug 14, 2017

Conversation

pschmitt
Copy link
Contributor
@pschmitt pschmitt commented Aug 13, 2017

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 the lock 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):

lock:
  - platform: nello
    username: mail@example.com
    password: !secret nello_password

Checklist:

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • New dependencies have been added to the REQUIREMENTS variable ([example][ex-requir]).
  • New dependencies are only imported inside functions that use them ([example][ex-import]).
  • New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
  • New files were added to .coveragerc.

@mention-bot
Copy link

@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):
Copy link
Contributor

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?

Copy link
Contributor Author
@pschmitt pschmitt Aug 13, 2017

Choose a reason for hiding this comment

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

Yes. See 55ef048

Copy link
Member
@pvizeli pvizeli left a comment

Choose a reason for hiding this comment

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

Leave a comment

@pvizeli pvizeli merged commit e2920ce into home-assistant:dev Aug 14, 2017
dethpickle pushed a commit to dethpickle/home-assistant that referenced this pull request Aug 18, 2017
* Initial Nello.io lock support

* Log an error when unlocking failed

* Make the lock's state always locked
@balloob balloob mentioned this pull request Aug 25, 2017
@home-assistant home-assistant locked and limited conversation to collaborators Dec 11, 2017
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.

6 participants
0