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

HomeKit: Add more device classes for contact sensor #14051

Merged
merged 1 commit into from
Apr 23, 2018
Merged

HomeKit: Add more device classes for contact sensor #14051

merged 1 commit into from
Apr 23, 2018

Conversation

marthoc
Copy link
Contributor

@marthoc marthoc commented Apr 22, 2018

Description:

The current binary sensor implementation in HomeKit does not include the door, garage door, or window binary sensor device classes present in Home Assistant, leading to binary sensor entities with those classes being created in HomeKit as occupancy sensors. This PR fixes this minor annoyance by ensuring that the door, garage door, and window binary sensor device classes are created as contact sensors in HomeKit.

Further tests may be required (or an expansion of the current tests); please advise if so and I’ll write them.

Related issue (if applicable): N/A

Pull request in home-assistant.github.io with documentation (if applicable): N/A

Example entry for configuration.yaml (if applicable):

N/A

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass

If the code does not interact with devices:

  • Tests have been added to verify that the new code works.

@marthoc marthoc requested a review from cdce8p as a code owner April 22, 2018 19:52
@cdce8p cdce8p self-assigned this Apr 23, 2018
@cdce8p cdce8p added this to the 0.68 milestone Apr 23, 2018
Copy link
Member

@cdce8p cdce8p left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for adding these cases 🥇 Can you update the documentation for it?

@cdce8p cdce8p merged commit 5fe4053 into home-assistant:dev Apr 23, 2018
@cdce8p
Copy link
Member

cdce8p commented Apr 23, 2018

The doc PR against the rc branch

@marthoc
Copy link
Contributor Author

marthoc commented Apr 23, 2018

@cdce8p I’ll take care of adding these to the docs in the next couple of days. Thanks!

@cdce8p
Copy link
Member

cdce8p commented Apr 26, 2018

@marthoc I've create the doc PR for this change already, since I also wanted to change the device classes to lower case in the doc. home-assistant/home-assistant.io#5254

@balloob balloob mentioned this pull request Apr 27, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Jul 26, 2018
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.

None yet

4 participants