Preliminary support for Matter cover#90262
Conversation
|
Hey there @home-assistant/matter, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
MartinHjelmare
left a comment
There was a problem hiding this comment.
Please also add tests. See the other platforms for examples of tests using the diagnostic dumps stored as fixtures.
|
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
|
Hi @hidaris do you have time/interest to address the feedback comments or may/can I help you finishing it ? |
Most of the feedbacks I've fixed locally, but because of the network in my region, the tests I've added don't have environmental testing at the moment, and I'm working on that... |
|
I added the test, but it keeps telling me I don't have the entity id, I used flag --snapshot-update, but it didn't solve the problem, can anyone tell me what's wrong? |
|
If you address the lint issues we can run CI again and see the error message of the pytest tests, and figure out what's wrong. I'm guessing the entity_id may be incorrect. |
I just pushed the fix |
|
Please also address the lint issues: ruff, isort and pylint |
I adjusted the ruff and isort issue, pylint says I have a problem with intflag, I'm not sure if that's a problem |
|
The entity_id seems to be |
|
Tests are still failing but for another reason now. Not sure what's wrong. |
It was a problem with the test fixture, available was not set to true, and then I found that the window state tests added to the previous test depended on the operational status of the subscription, which was not updated correctly during the mock, so I removed them. |
|
Can't we set the operational status attribute too in the test so we can test all possible states? |
Yes, I added it |
|
CI says docs-missing, does this need to be fixed? |
|
Yes, please link a docs PR with an addition of the new platform to the |
I just updated the documentation home-assistant/home-assistant.io#26857 |
marcelveldt
left a comment
There was a problem hiding this comment.
Awesome, thanks for your contribution !
|
@marcelveldt Just wondering if you're working on the Thermostat cluster? I've got some free time next week and was thinking of giving it a shot. |
Yes, I am. I'll drop a PR for that this week. |
Looking forward to it! As a non-native English speaker, my description of the device may not be entirely accurate, but to me it is a control panel for central air conditioning. In the matter specification, it corresponds to the thermostat under HVAC. |
Proposed change
This PR adds matter cover control feature. Curtain tilt support has not been added yet.
Type 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: