Add HomeKit Door accessory type#80741
Conversation
|
Hi Dexwell It seems you haven't yet signed a CLA. Please do so here. Once you do that we will be able to review and accept this pull request. Thanks! |
|
Hey there @bdraco, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
|
I took a stab at implementing this myself—please bear with me as this is my first contribution to this project. I have not been able to test whether this achieves the desired result in HomeKit as I don't know how to test this in a development environment, but in a different project making these similar changes produced the correct result. Hopefully this is a good first start and someone else can get this PR across the finish line. |
bdraco
left a comment
There was a problem hiding this comment.
All HomeKit accessories need 100% test coverage before we can merge them. Please add tests for this new accessory type. Thanks!
|
I've never written tests—can anyone else pick this up? |
|
@Dexwell If you based your code off of the garage integration you could just mimic the test coverage for the garage door. Take a look in the tests directory, it has a similar folder layout to the homeassistant directory. |
|
If I would be allowed to make changes to this I have the testing code made. |
|
@jredd That's awesome! I invited you as a collaborator on my repo :) |
|
@Dexwell It took me a min to figure out how to do it with Github, I'm use to gitlab now and things are a bit weird for me. I have created a pr into your fork I believe, let me know how it looks and if I need to create more changes. |
feat: adding testing for the door type cover
|
Hi jredd It seems you haven't yet signed a CLA. Please do so here. Once you do that we will be able to review and accept this pull request. Thanks! |
|
Should be good to go once a docs PR is opened and linked to update https://www.home-assistant.io/integrations/homekit/#supported-components |
Done! |
|
Thanks @Dexwell |
|
We still need a test for the accessories file |
|
I added the missing coverage. |
2023.3: Beta release notes 2023.3: Update KNX change description (home-assistant#26347) 2023.3: Process community feedback on beta release notes 2023.3: Add Z-Wave JS breaking change details Clarify the example is below the sentence (home-assistant#26349) Update Insteon documentation (home-assistant#26399) 2023.3: Finalize restarting Home Assistant 2023.3: Finalize Python 3.11 section 2023.3: Finalize sensor precision 2023.3: Finalize new integrations 2023.3: Finalize breaking change + dev blog links 2023.3: Finalize other noteworthy changes 2023.3: Add missing todoist breaking change 2023.3: Finalize new automation dialog 2023.3: Finalize thread and matter 2023.3: Finalize intro 2023.3: Finalize new light dialog 2023.3: Title, date, description, links 2023.3: Small tweaks 2023.3: Small tweaks Add Heltun integration (home-assistant#26411) Co-authored-by: Franck Nijhof <frenck@frenck.nl> Revert "Update derivative.markdown" (home-assistant#26402) Remove reference to non-implemented attributes (home-assistant#26408) Apply suggestions from code review Co-authored-by: Martin Hjelmare <marhje52@gmail.com> 2023.3: Update changelog Fix cover templates breaking change text Co-authored-by: Martin Hjelmare <marhje52@gmail.com> Use brand logos if ha_brand in search results (home-assistant#26427) Clarify Thread border router credential sync (home-assistant#26423) 2023.3.1 (home-assistant#26430) * 2023.3.1 * Update source/_posts/2023-03-01-release-20233.markdown * Update source/_posts/2023-03-01-release-20233.markdown add reinstall instructions (home-assistant#26439) Bump rack from 2.2.6.2 to 2.2.6.3 (home-assistant#26440) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Add scene.delete service See home-assistant/core#89090 Add climate devices documentation for LIVISI integration (home-assistant#25957) Add Camera to Prosegur (home-assistant#25419) Co-authored-by: Franck Nijhof <frenck@frenck.nl> Adding Obihai codeowner (home-assistant#26386) HELTUN partnership announcement blog post (home-assistant#26415) Co-authored-by: Franck Nijhof <frenck@frenck.nl> Update renault documentation - Add button section (home-assistant#26260) Co-authored-by: epenet <6771947+epenet@users.noreply.github.com> Document energy_storage and volume_storage device classes (home-assistant#26394) Co-authored-by: Franck Nijhof <git@frenck.dev> Add Config Flow to Obihai (home-assistant#26354) Add reolink button entities (home-assistant#26355) device_class and state_class (home-assistant#25742) Co-authored-by: Franck Nijhof <frenck@frenck.nl> Reolink add switch entities (home-assistant#26353) Co-authored-by: Franck Nijhof <git@frenck.dev> Add Reolink siren documentation (home-assistant#26282) Co-authored-by: Franck Nijhof <frenck@frenck.nl> Co-authored-by: Franck Nijhof <git@frenck.dev> Add Reolink select entities (home-assistant#26341) Co-authored-by: Franck Nijhof <git@frenck.dev> Co-authored-by: Franck Nijhof <frenck@frenck.nl> Add new Reolink number entities (home-assistant#26283) Add reolink light entities (home-assistant#26338) Add Obihai Reboot button (home-assistant#26385) Add clarification for reolink entities (home-assistant#26469) Co-authored-by: Franck Nijhof <frenck@frenck.nl> Add Door cover documentation (home-assistant#26331) Resolves home-assistant/core#80741


Proposed change
This PR aims to make
covertemplates with thedevice_classset todoorappear as actual doors in HomeKit. See #79363Type of change
Additional information
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.To help with the load of incoming pull requests: